using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Installer { public partial class TablessTabControl : TabControl { private const int TCM_ADJUSTRECT = 0x1328; protected override void WndProc(ref Message m) { // Intercept the TCM_ADJUSTRECT message if (m.Msg == TCM_ADJUSTRECT) { // Adjust the rectangle to hide the tabs if (!DesignMode) { m.Result = (IntPtr)1; return; } } base.WndProc(ref m); } } }