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.
More Related Contents:
- Hide TabControl buttons to manage stacked Panel controls
- How to hide TabPage from TabControl [duplicate]
- TabControl with Close and Add Button
- Hide Tab Header on C# TabControl
- Set TabPage Header Color
- Open link in new TAB (WebBrowser Control)
- Close button for TabPages of Right To Left TabControl c#
- How do I disable visual styles for just one control, and not its children?
- Close button in tabControl
- TabControl and borders visual glitch
- How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?
- How to get ALL child controls of a Windows Forms form of a specific type (Button/Textbox)?
- Why is there a default instance of every form in VB.Net but not in C#?
- Visual Studio 2010 suddenly can’t see namespace?
- How to make two transparent layer with c#?
- How to drag and move shapes in C#
- Change border color in TextBox C#
- WinForms Global Exception Handling?
- WinForms RadioButtonList doesn’t exist?
- Get access to parent control from user control – C#
- Remove Row inside TableLayoutPanel makes a layout problem
- How to change the font color of a disabled TextBox?
- SendInput doesn’t perform click mouse button unless I move cursor
- How to programmatically include a file in my project?
- Toggle switch control in Windows Forms
- How to setup the starting form of a winforms project in Visual Studio 2010
- Make a form’s background transparent
- Fire Form KeyPress event
- Prevent Winforms Designer from Generating Property Values for Inherited Controls
- Region.IsVisible(PointF) has very slow performance for large floating point values