When working with the TabControl in your Windows application, in order to programmatically choose the tab you want to show, use the SelectedIndex property of the TabControl:

TabControl1.SelectedIndex=2