Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
1.22/5 (3 votes)
See more:
I created one xtratab control and some tab pages like entry, report. I want to select tab page according the menu option what I selected. For example in menu option if I select entry then entry tab page should open and if I select reports from menu reports tab page should open.

What I have tried:

I googled for that but unable to find.
Posted
Updated 3-Nov-18 14:59pm
Comments
BillWoodruff 3-Nov-18 22:15pm    
Assuming you purchased this expensive software, why aren't you searching its documentation, and using the company's support resources ?
vijay_bale 4-Nov-18 3:06am    
There also I posted same question and waiting for replay. in that time I posted here.If you don't know that answer then better you should not give advice.Maybe my words are hurting you but this is the fact.

1 solution

I'm not at all familiar with the 3rd party DevExpress controls, but a quick Google shows that their tab control has many of the same properties as the standard version.

So...simply set the value of the SelectedTabPage or the SelectedTabPageIndex property. For the former, simply set it to the variable that contains the desired tab page. For the latter, simply set it to the zero-based index of the tab page you want.

For reference, see:

XtraTabControl Members | WinForms Controls | DevExpress Help[^]
 
Share this answer
 
Comments
BillWoodruff 3-Nov-18 22:16pm    
Do realize you are probably helping someone who did not buy the software.
Eric Lynch 3-Nov-18 22:53pm    
I suppose it is possible...I don't know the OP. Also, as I mentioned in the solution, I'm not familiar with DevExpress.

That said, it doesn't seem like I'm exactly sharing state secrets here :)

I'm not providing anything more than is available either with the free MS documentation (for the standard control) or the free DevExpress documentation (I found with Google).
BillWoodruff 4-Nov-18 3:23am    
Of course, your intent is to be helpful. I only ask you to consider the implications of DOING the work for someone who has not read the documentation, or other.

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