Click here to Skip to main content
15,885,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to set a specific tab within my tab control to be the first tab shown and also be selected. I only have the tab name as a string to do this.

Many Thanks
Posted

1 solution

Try doing some research via MSDN
(Couldn't get this link to format properly, but it's the TabControl.TabPages Properties and has some sample code):
http://msdn.microsoft.com/en-us/library/system.windows.forms.tabcontrol.tabpages(v=vs.110).aspx


TabControl.TabPagesCollection.Add Method[^]
 
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