I think I need some sleep... Anyway, how do I tell which tab is currently selected in a tabstrip control? -Jordan
You could use the Index to tell. Code: 'First tab is clicked If (TabStrip1.SelectedItem.Index) = 1 Then ..'code 'second tab is clicked If (TabStrip1.SelectedItem.Index) = 2 Then ..'code
'First tab is clicked If (TabStrip1.SelectedItem.Index) = 1 Then ..'code 'second tab is clicked If (TabStrip1.SelectedItem.Index) = 2 Then ..'code
This will loop through each Tab and check if it's selected. Code: For I = 0 To TabStrip1.Tabs.Count If TabStrip1.SelectedItem.Index - 1 = I Then MsgBox ("Tab #" & I & " is selected") Next I
For I = 0 To TabStrip1.Tabs.Count If TabStrip1.SelectedItem.Index - 1 = I Then MsgBox ("Tab #" & I & " is selected") Next I
Forum Rules