TabControl.Appearance Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the visual appearance of the control's tabs.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

Public Property Appearance As TabAppearance

Property Value

Type: System.Windows.Forms.TabAppearance

One of the TabAppearance values. The default is Normal.

Exception Condition

The property value is not a valid TabAppearance value.

When you set the Appearance property to FlatButtons, it only appears as such when the Alignment property is set to Top. Otherwise, the Appearance property appears as if set to the Buttons value.


When you set the Appearance property to Buttons, you must also set the Alignment property to Top so that the tab page contents display correctly.

The following code example creates a TabControl with two TabPage objects. This example sets the Appearance property to Buttons, which displays the tabs of the tab pages as buttons.

Use the System.Windows.Forms namespace for this example.

Imports System.Windows.Forms

Public Class Form1
    Inherits Form

    Public Sub New()
        Dim tabText As String() = {"tabPage1", "tabPage2"}
        Dim tabControl1 As New TabControl()
        Dim tabPage1 As New TabPage(tabText(0))
        Dim tabPage2 As New TabPage(tabText(1))

        ' Sets the tabs to appear as buttons.
        tabControl1.Appearance = TabAppearance.Buttons

        tabControl1.Controls.AddRange(New TabPage() {tabPage1, tabPage2})
    End Sub

    Shared Sub Main()
        Application.Run(New Form1())
    End Sub
End Class

.NET Framework
Available since 1.1
Return to top