1. Herfried K. Wagner’s VB.Any
  2. .NET
  3. Frequently Asked Questions

Removing a tabcontrol control’s tabpage headers

Removing a tabcontrol control's tabpage headers
<URL:https://dotnet.currifex.org/dotnet/faqs/tabcontrolremoveheaders/en/>
----------------------------------------------------------------------------

Removing a tabcontrol control's tabpage headers

The Windows Forms tabcontrol of .NET 1.0/1.1 doesn't provide support for
removing the tabpage headers in order to allow alternative ways of tabpage
navigation.  The headers can be removed by setting the tabcontrol's
'Region' property to a rectangle with the shape taken from the first
tabpage's position and size:

\\\
Me.TabControl1.Region = _
    New Region( _
        New RectangleF( _
            Me.TabPage1.Left, _
            Me.TabPage1.Top, _
            Me.TabPage1.Width, _
            Me.TabPage1.Height _
        ) _
    )
///

For additional information on the Windows Forms tabcontrol, take a look at
the page dedicated to tabcontrols on Mick Doherty's website:

Mick Dohertys DotNet Tips
<URL:http://dotnetrix.co.uk/tabcontrols.html>