Export (0) Print
Expand All
T
Expand Minimize

Visual Basic: MSTab Control

Visual Studio 6.0

Tab Property (SSTab Control)

See Also   Example   Applies To

Returns or sets the current tab for an SSTab control.

Syntax

object.Tab [ = tabnumber ]

The Tab property syntax has these parts:

Part Description
object An object expression that evaluates to an SSTab control.
tabnumber A numeric expression that indicates a specific tab. The first tab is always 0.

Remarks

The current tab moves to the front and becomes the active tab.

Typically, the user of your application clicks a tab to make it the current tab. However, you may need to select the current tab in code. For example, you may want the same tab to be the current tab each time you display a certain dialog box in your application. If you dismiss the dialog box by using the Hide method of the Form, the last tab to be the active tab when the Form was hidden will be the active tab the next time the dialog box appears. You can set the Tab property of the SSTab control so the same tab is active every time the dialog box appears.

Show:
© 2014 Microsoft