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
 
Back
Top