public int SelectedTabIndex { get; set; }Public Property SelectedTabIndex As Integer
Get
SetIf you set a value less than 0 to SelectedTabIndex, it will be automatically set to -1 which means that no TabPage is selected.
If you set a value equal to or greater than the amount of TabPage objects in the TabPages collection, SelectedTabIndex will throw ArgumentOutOfRangeException.
| ArgumentOutOfRangeException | Thrown, if the set value is equal to or greater than the amount of TabPage objects in the TabPages collection. |