Sets the tabbed page that is selected in this control and returns the zero-based index of that tab.
public final int setSelectedTab( TabPage tab )
tab
A TabPage object that represents the tabbed page to select. If the value you supply is not a TabPage object found in the child list for this tab control, this method has no effect.
Returns the zero-based index of the selected tabbed page. Returns -1 if no tabbed page was selected.
See Also getSelectedTab