Changing the currently selected tab


To change from on tab to another the SetFocus() method is used. For example, the following would change the default tab to Tab3 in the tab control tabControl1:

.tabControl1.tab3.SetFocus()