TabControl question
-
Evning All, Can anyone tell me if it's possible to fire an event (add components to a form) when you click on the tab of a 'TabControl' I've learned that with other components in the form you 'double click' on say.....a button and it automatically takes you generated code that you can add to. However, when designing the form you can't double click on an individual tab so i was wondering i there is such a feature. Regards Neil
-
Evning All, Can anyone tell me if it's possible to fire an event (add components to a form) when you click on the tab of a 'TabControl' I've learned that with other components in the form you 'double click' on say.....a button and it automatically takes you generated code that you can add to. However, when designing the form you can't double click on an individual tab so i was wondering i there is such a feature. Regards Neil
-
Evning All, Can anyone tell me if it's possible to fire an event (add components to a form) when you click on the tab of a 'TabControl' I've learned that with other components in the form you 'double click' on say.....a button and it automatically takes you generated code that you can add to. However, when designing the form you can't double click on an individual tab so i was wondering i there is such a feature. Regards Neil
Hi, you want the TabIndexChanged event. It handles the entire TabControl, not individual pages, so if you need code specific for each page you might want to insert a switch statement there. :)
Luc Pattyn [Forum Guidelines] [My Articles]
Fixturized forever. :confused: