Visual Basic: MSTab Control

Click Event (SSTab Control)

See Also   Example   Applies To

The Click event occurs when the user selects one of the tabs on an SSTab control.

Syntax

Private Subobject_Click ([indexAs Integer], previoustabAsInteger)

The Click event syntax has these parts:

Part Description
object An object expression that evaluates to an SSTab control.
Index An integer that uniquely identifies a control if it is in a control array.
previoustab A numeric expression that identifies the tab that was previously active.

Remarks

Use the Click event to determine when a user clicks a tab to make it the active tab. When a tab receives a Click event, that tab becomes the active tab and the controls placed on it at design time appear.

With the previoustab argument, you can check for changes made when the user clicks another tab.

Use the Tab property to determine the current tab.