)
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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to enable or disable the specific tab at runtime in WinForms TabControlAdv?

Platform: WinForms |
Control: TabControlAdv |
Published Date: May 31, 2018 |
Last Revised Date: January 30, 2020

Enable or disable the specific tab at run time

User can enable or disable the specific tab page at run time. It can be achieved by TabEnabled property of tab page. The following code demonstrates the same.

C#

//Enable the specific tab page
this.tabPageAdv2.TabEnabled = true;
this.tabPageAdv3.TabEnabled = true;
 
//Disable the specific tab page
this.tabPageAdv2.TabEnabled = false;
this.tabPageAdv3.TabEnabled = false;

VB

'Enable the specific tab page
Me.tabPageAdv2.TabEnabled = True
Me.tabPageAdv3.TabEnabled = True
 
'Disable the specific tab page
Me.tabPageAdv2.TabEnabled = False
Me.tabPageAdv3.TabEnabled = False

Screenshot

Show the disable tab page

Figure: Tab pages disabled.

Show the enable tab page

Figure: Tab pages enabled.

 

Samples:

C#:  TabControlAdvExample

VB:  TabControlAdvExample

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile
Live Chat Icon