TabControl.TabCount Property

 

Gets the number of tabs in the tab strip.

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

[<BrowsableAttribute(false)>]
member TabCount : int with get

Property Value

Type: System.Int32

The number of tabs in the tab strip.

The following code example creates a TabControl with five TabPage objects. This example uses the TabCount property to get the number of tabs currently in the tabControl1 tab strip.

Use the System.Drawing and System.Windows.Forms namespaces for this example.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: