Goober Goober - 1 year ago 205
C# Question

C# TabControl TabPage Change

How do I change the tabpage being displayed in my tabcontrol programmatically?

Answer Source

Either by tabControl1.SelectedIndex which is an integer or if you have a reference to a particular tab, tabControl1.SelectedTab.

If you wanted the first one selected:

tabControl1.SelectedIndex = 0;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download