setting tab control focus

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

2 Replies

AD Administrator Syncfusion Team October 17, 2006 08:04 AM UTC

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.


CM Charlie Mao October 17, 2006 06:23 PM UTC

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.

Loader.
Up arrow icon