How can I set the tab that has the focus via code. I have a TabStrip with 4 tabs, and I'm using this sub to control the strip when clicked, but how can I send the sub an Index number via code (tried: TabStrip1.SelectedItem.Index = A%, but it is read only)
Private Sub DoTabLogic()
Dim iCurrTab As Integer
iCurrTab = TabStrip1.SelectedItem.Index
Select Case iCurrTab
Case 1
Frame1(0).Visible = True
Frame1(1).Visible = False
Frame1(2).Visible = False
Frame1(3).Visible = False
Case 2
Frame1(0).Visible = False
Frame1(1).Visible = True
Frame1(2).Visible = False
Frame1(3).Visible = False
Case 3
Frame1(0).Visible = False
Frame1(1).Visible = False
Frame1(2).Visible = True
Frame1(3).Visible = False
Case 4
Frame1(0).Visible = False
Frame1(1).Visible = False
Frame1(2).Visible = False
Frame1(3).Visible = True
End Select
End Sub
Thanks
Catrina
[sig][/sig]
Private Sub DoTabLogic()
Dim iCurrTab As Integer
iCurrTab = TabStrip1.SelectedItem.Index
Select Case iCurrTab
Case 1
Frame1(0).Visible = True
Frame1(1).Visible = False
Frame1(2).Visible = False
Frame1(3).Visible = False
Case 2
Frame1(0).Visible = False
Frame1(1).Visible = True
Frame1(2).Visible = False
Frame1(3).Visible = False
Case 3
Frame1(0).Visible = False
Frame1(1).Visible = False
Frame1(2).Visible = True
Frame1(3).Visible = False
Case 4
Frame1(0).Visible = False
Frame1(1).Visible = False
Frame1(2).Visible = False
Frame1(3).Visible = True
End Select
End Sub
Thanks
Catrina
[sig][/sig]