I have tried:
tabControl1.TabPages[(
int)TabSet1.CHARTING].Select();tabControl1.TabPages[(int)TabSet1.CHARTING].Focus();to no effect. TabSet1 is an enumeration for the tabs.
If I then add this line:
tabControl1.TabPages[(
int)TabSet1.CHARTING].Show();I get a little closer -- but no cigar. With this line, the current tab goes blank (the datagrid and buttons disappear) but the desired tab still remains tantalizingly hidden.
Note that I am not necessarily trying to invoke any code in the tabcontrol's Click() event, just make the desired tab become the active control and display its contents without the user having to physically click on it.
TIA
rca

How Do You Simulate a Mouse Click?
kingofrain
For example: tabControl1.SelectedIndex = 2
sets the 3rd tab from the left as the selected tab.
David Edwards
--rca