Click here to Skip to main content
16,017,638 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to set a selected tab as an active tab in tabcontainer.

there r 4 tabs in tabcontainer . i want to change active tab index property at runtime. the tab which is selected or opened should be active.

pls. help soon.
Posted

1 solution

wherever you want to set the tab index use
C#
TabContainer1.ActiveTabIndex = 0;//can be 1, 2 or 3
 
Share this answer
 
Comments
maan_k 8-Jan-13 6:58am    
i want to change at runtime ,the tab which is selected should be active tab
Zafar Sultan 8-Jan-13 7:08am    
Create a property on your page. Each time you change the tab index set it to TabControl1.ActiveTabIndex. At runtime wherever you want to set use TabControl1.ActiveTabIndex = yourPropertyValue
[no name] 8-Jan-13 7:34am    
*****
Zafar Sultan 8-Jan-13 7:36am    
Thanks.

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