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

TabControl / disabling tab selection by clicking

Thread ID:





68815 Oct 2,2007 01:29 PM UTC Oct 14,2007 09:32 AM UTC WinForms 2
Tags: Tools
Christoph Gasser
Asked On October 2, 2007 01:29 PM UTC

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?


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

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


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


Christoph Gasser
Replied On October 14, 2007 09:32 AM UTC

Thank you very much. It' working fine.


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

or the page will be automatically redirected to 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