Tab page events
-
Is there a way to get a tab page change event (or any event for that matter) to fire when you click the "tab" portion of the tab page...??? All the events I've tried seem to need a click in the tab page body in order to fire... I need to be able to do some "init" coding on tab pages as soon as the tab label is clicked, without having to first click in the tab page body, and I'm wondering if anyone has some advice as to how this can be done... thanks.
-
Is there a way to get a tab page change event (or any event for that matter) to fire when you click the "tab" portion of the tab page...??? All the events I've tried seem to need a click in the tab page body in order to fire... I need to be able to do some "init" coding on tab pages as soon as the tab label is clicked, without having to first click in the tab page body, and I'm wondering if anyone has some advice as to how this can be done... thanks.
You can use the SelectedIndexChanged event of the TabControl. This event fires whenever the selected tab page changes. The selectedindex property of the TabControl will be the page that was selected (0 based). - monrobot13
-
You can use the SelectedIndexChanged event of the TabControl. This event fires whenever the selected tab page changes. The selectedindex property of the TabControl will be the page that was selected (0 based). - monrobot13