Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jul 2004
    Location
    Columbia, Maryland, USA
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using Tabs Form - how to On Click (XP)

    Hello,
    I am using a Tabs Form and I wanted to run an event when the user clicks a tab. I thought it would be as simple as using the On Click [Event Procedure], but is not working, nothing happens. What am I doing wrong? or How I get this to work?
    Thanks,
    Luis

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

    Re: Using Tabs Form - how to On Click (XP)

    Instead of the On Click event of a tab page (which doesn't work), use the On Change event of the tab control as a whole. You can determine which tab page the user clicked by inspecting the Value property of the tab control. The value is 0-based, i.e. the first tab page is 0, the second one is 1, etc.

    Private Sub MyTabControl_Change()
    Select Case MyTabControl.Value
    Case 0
    ...
    Case 1
    ...
    ...
    End Select
    End Sub

  3. #3
    New Lounger
    Join Date
    Jul 2004
    Location
    Columbia, Maryland, USA
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Using Tabs Form - how to On Click (XP)

    Hans,
    Wow....!
    Thanks........., that worked!!
    Luis

Posting Permissions

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