Tab Property (SSTab Control) Example

This example always makes the first tab in the SSTab control the active tab just before showing the form which contains the control. To try this example, create two Form objects. Place a CommandButton control on Form1 and an SSTab control on Form2. Paste the code into the Click event of the CommandButton on Form1, and then run the example.

Private Sub Command1_Click()
   Form2.SSTab1.Tab = 1
   Form2.Show
End Sub