Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Sep 2002
    Location
    New York, New York
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    tab click event (2000)

    Is there an event that occurs when I change tabs on a tab control?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: tab click event (2000)

    Yes, the On Change event of the tab control; the On Click event of the individual pages doesn't do anything. The Value property of the tab control is the zero-based index of the page clicked by the user: 0 = first tab, 1 = second tab etc. For a tab control named tabPages:

    Private Sub tabPages_Change()
    Select Case tabPages.Value
    Case 0
    ' Code to execute if user clicks first tab
    Case 1
    ' Code to execute if user clicks second tab
    ' etc.
    End Select
    End Sub

  3. #3
    Star Lounger
    Join Date
    Sep 2002
    Location
    New York, New York
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: tab click event (2000)

    Makes sense. I was looking at the event list for each page.

    Thanks Hans.

Posting Permissions

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