Click here to Skip to main content
15,881,738 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In addition to my form1,I have another windows form and I have a TabControl with 3 tabs on it.
I open the windows form using code.I want the second tab to be open at form's load.how can I do that?
Posted
Updated 25-Jan-13 13:09pm
v3
Comments
Sergey Alexandrovich Kryukov 25-Jan-13 18:13pm    
Which TabControl? There are different types named like that. Full type name, please.
—SA

1 solution

OK, I can see this is about System.Windows.Forms.TabControl, but you should always tag it: "Forms". This is not your first question.

You need to use one of these properties, or both:
http://msdn.microsoft.com/en-us/library/system.windows.forms.tabcontrol.selectedindex.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.tabcontrol.selectedtab.aspx[^].

Even more important thing to use: Microsoft Q209354.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900