Active Tab on a Tab Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Sorry to be a pest again, but I need to be able to find which tab is 'active'
on a Tab control on a form. The control has 4 tabs, called Tab1, Tab 2 etc.
I want to set a label field on the main form to a differet text depending on
which tab of the Tab control is active. Tha latter I can do, if only I could
find which Tab was active. (I can use the Tab control 'On change' or 'On
click' event to trigger the change to the label)
TIA Trev
 
The tabcontrol container has a property value this is containing the active
pagenumver(zero based).

You can get the name e.g. TabCtl0.Pages(TabCtl0.Value).Name

- Raoul
 

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

Back
Top