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.

TabControl / disabling tab selection by clicking

Thread ID:

Created:

Updated:

Platform:

Replies:

68815 Oct 2,2007 09:29 AM Oct 14,2007 05:32 AM Windows Forms 2
loading
Tags: Tools
Christoph Gasser
Asked On October 2, 2007 09:29 AM

I have a TabControl implemented and the selection of the active tab is controlled programatically using SelectedIndex = ...
The user should not be able to change the tabs by clicking on them. What I tried is to hide the tabs using TabVisible . But then all the controls in the tab content area are moving up.

Is there any possibility to disable the tab selection by clicking on it?

BR
Christoph

J.Nagarajan [Syncfusion]
Replied On October 5, 2007 07:36 PM

Hi Christoph ,

Thanks for your interest in Syncfusion products.

You can disable the selection of tabs by clicking on the tab. You have to handle the SelectedIndexChanging event of the TabControlAdv. Please refer to the following code snippet

[C#]

private void tabControlAdv1_SelectedIndexChanging(object sender, Syncfusion.Windows.Forms.Tools.SelectedIndexChangingEventArgs args)
{
args.Cancel = true;
}


Please use this code and let me know if this helps

Regards,
Nagaraj

Christoph Gasser
Replied On October 14, 2007 05:32 AM

Thank you very much. It' working fine.

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.

;