We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Switch tabs in code

Thread ID:





96937 Oct 14,2010 12:01 PM UTC Oct 18,2010 05:16 PM UTC WinForms 1
Tags: Tools
Administrator [Syncfusion]
Asked On October 14, 2010 12:01 PM UTC


I have 2 controls which are tabbed document in the application.
I want to selecte a tab manualy in the code.
I tried Focus() method but it doesn't work.


Elad Iluz

Vallarasu S [Syncfusion]
Replied On October 18, 2010 05:16 PM UTC

Hi Elad,

Thanks for your interest in Syncfusion products.

Use the following code to activate a tab in TabbedMDIManger

TabHost[] tabHosts = tabbedMDIManager1.TabGroupHosts;
Form[] MDIChilds = tabbedMDIManager1.MdiChildren as Form[];
if (MDIChilds != null && MDIChilds.Length >= 1)
// You can iterate through the MDIChilds collection for a specific from and,
// pass it to GetTabPageAdvFromForm() method
// tabs[0].MDITabPanel.SelectedTab = tabs[0].MDITabPanel.GetTabPageAdvFromForm(form);
tabHosts[0].MDITabPanel.SelectedTab = tabHosts[0].MDITabPanel.GetTabPageAdvFromForm(MDIChilds[1]);

Please let me know if you have concerns on this.

Vallarasu S.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon