Tab Control - How to detect which tab got focus ?

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
 
R

Rick Brandt

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.
 
A

Andre

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top