Results 1 to 3 of 3

Thread: Tabstrip - What tab is currently selected?

  1. #1
    Guest
    I think I need some sleep...

    Anyway, how do I tell which tab is currently selected in a tabstrip control?

    -Jordan

  2. #2
    Guest
    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

  3. #3
    Guest
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width