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.
Unfortunately, activation email could not send to your email. Please try again.

setting tab control focus

Thread ID:

Created:

Updated:

Platform:

Replies:

50672 Oct 17,2006 02:29 AM Oct 17,2006 02:23 PM Windows Forms 2
loading
Tags: Tools
Charlie Mao
Asked On October 17, 2006 02:29 AM

Hey, I have a bar item menu called view. The submenu contains all my tab names. I was wondering if someone could help me with changing the tab focus. For example if I have a file menu called "View". The submenus of view are tab1, tab2, and tab3. If I select tab3 from the menu, I would like it to bring up the tab for tab3. Any ideas. Thanks....

Charlie

Administrator [Syncfusion]
Replied On October 17, 2006 04:04 AM

Hi Charlie,

To focus the particular tab, you could set the SelectedTab property of the TabControlAdv. Add the below given code snippet in the click event of the bar item to focus the tab3.

"this.tabControlAdv1.SelectedTab = this.tabPageAdv3;"

I attached the sample,please go through that and let me know, if i understood you correctly.


TabControl.zip


Regards,
Malarvizhi.

Charlie Mao
Replied On October 17, 2006 02:23 PM

Thanks you so much Malarvizhi. This is exactly what I was looking for.

>Hi Charlie,

To focus the particular tab, you could set the SelectedTab property of the TabControlAdv. Add the below given code snippet in the click event of the bar item to focus the tab3.

"this.tabControlAdv1.SelectedTab = this.tabPageAdv3;"

I attached the sample,please go through that and let me know, if i understood you correctly.


TabControl.zip


Regards,
Malarvizhi.

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.

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.

;