Tab Control - How to detect which tab got focus ?

  • Thread starter Thread starter Andre
  • Start date Start date
A

Andre

I want to run an on-click event when the user selects a tab to show or hide
some controls (split form, want to hide the split form on certain views)

The tabs has an on-click event but it does not trigger when you click the
tab itself, only once the tab has focus and you click within the tab does it
trigger.

Thanks
 
Andre said:
I want to run an on-click event when the user selects a tab to show or
hide some controls (split form, want to hide the split form on certain
views)

The tabs has an on-click event but it does not trigger when you click the
tab itself, only once the tab has focus and you click within the tab does
it trigger.

Use the Change event of the entire TabControl (Not a page). You can use its
Value property to determine which page was selected.
 
Thanks Rick, got that sorted out now.

Andre

Rick Brandt said:
Use the Change event of the entire TabControl (Not a page). You can use
its
Value property to determine which page was selected.
 
Back
Top