Tab Controls

Jay1b

Contributor
Joined
Aug 3, 2003
Messages
640
Location
Kent, Uk.
Hi

I have a tab control, with 3 tabs.

I want the program to find out what tab is currently selected, can someone point me in the right direction please?

Thanks
Jay.

Sorry a colleague has since told me - cant seem to delete the post.
 
Last edited:
Try this:
Visual Basic:
    Private Sub TabControl1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TabControl1.SelectedIndexChanged
        MessageBox.Show(TabControl1.SelectedTab.ToString)
    End Sub
 
Back
Top