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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Switch tabs in code

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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.

Thanks,

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.

Regards
Vallarasu S.


CONFIRMATION

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.

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

;