Home > DeveloperSection > Forums > How can I disable a tab inside a TabControl?
Jeet Verma
Jeet Verma

Total Post:110

Posted on    January-29-2014 11:32 PM

 C# C# 

 1 Reply(s)
 968  View(s)
Rate this:
Is there any way to disable a tab in a tabcontrol?

Pravesh Singh

Total Post:412

Posted on    January-29-2014 11:51 PM

Hi Jeet,

You could register the "Selecting" event and cancel the navigation to the tab page:

private void tabControl1_Selecting(object sender, TabControlCancelEventArgs e)


    if (e.TabPage == tabPage2)

        e.Cancel = true;


Another idea is to put all the controls on the tabpage in a Panel control and disable the panel.

Don't want to miss updates? Please click the below button!

Follow MindStick