Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone,

I want to change the active tabpage of my XtraTabControl when a button clicked by c# code in runtime.
I have tested following codes but any of them did not work :

C#
tabpage1.Show();
tabpage1.pageVisible=true;
xtraTabControl1.tabPages[0].selected=true;


how should i do? Please help me...
Posted
Updated 20-Feb-12 18:34pm
v2
Comments
AmitGajjar 21-Feb-12 1:48am    
what is XtraTabControl ? is it third party control ?
M_Mogharrabi 21-Feb-12 3:37am    
yes,It is a control of DevExpress control group.I thought it is too famous!!
in addition i have added it to my question tags.
BobJanova 21-Feb-12 6:57am    
You should probably ask this on the DevExpress forums.

1 solution

xtraTabControl1.SelectedTabPage = xtraTabPage1;
 
Share this answer
 
Comments
M_Mogharrabi 3-Mar-12 0:54am    
thanks, i will test it in my project and say the result.
Member 11925473 24-Aug-16 8:47am    
thank you it helped me

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