Hello, How do I change the tabpage being displayed in my tabcontrol programmatically?
+5
A:
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;
Joshua Belden
2009-05-06 19:39:17
Solved my problem too. Thanks!
John at CashCommons
2010-09-30 21:11:13
A:
tanks a lot my friend. (tabControl1.SelectedIndex = 0;) Is very GooooooooD Answer.
afshin
2010-10-15 18:31:39