C# – How to disable a tab inside a TabControl

ctabcontrolwinforms

Is there a way to disable a tab in a TabControl?

Best Answer

Cast your TabPage to a Control, then set the Enabled property to false.

((Control)this.tabPage).Enabled = false;

Therefore, the tabpage's header will still be enabled but its contents will be disabled.