Clicking on any tab fires the SelectedIndexChanged event; so you should add a handler for that event, get the new tab page index from the SelectedIndex property, and act accordingly in your handler's code. I find myself adding a switch statement quite often in such a handler. In order to add a handler, you can use Visual Designer, click the tab control, get its properties, get the events pane, and double-click the row for SelectedIndexChanged. That will create an empty handler, and generate the wiring for it. Or you can add it just by editing the code... (everything Designer does, you can code yourself also). :) ?
Luc Pattyn [Forum Guidelines] [My Articles]
Fixturized forever. :confused:
modified on Wednesday, December 17, 2008 5:45 PM