How can I disable a tab inside a TabControl?

Gold picture Gold · Jan 6, 2009 · Viewed 181.8k times · Source

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

Answer

Cédric Guillemette picture Cédric Guillemette · Jan 6, 2009

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.