)
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 set the Close button for active tab or all the tab items in the WinForms TabControlAdv?

Platform: WinForms |
Control: TabControlAdv |
Published Date: February 9, 2015 |
Last Revised Date: February 3, 2020

CloseButton settings

In TabControlAdv, Close button appearance can be customized by using its property ShowTabCloseButton and ShowCloseButtonForActiveTabOnly.

ShowTabCloseButton - To show Close button for all TabPageAdv’s in TabControlAdv.

ShowCloseButtonForActiveTabOnly - To show Close button for active TabPageAdv in TabControlAdv.

The following code example is to demonstrate the same.

C#

//Show Close button for all the tab item
this.tabControlAdv1.ShowTabCloseButton = true;
this.tabControlAdv1.ShowCloseButtonForActiveTabOnly = false;
//Show Close button for Active tab item
this.tabControlAdv1.ShowCloseButtonForActiveTabOnly = true;
this.tabControlAdv1.ShowTabCloseButton = true;

VB

'Show Close button for all the tab item
Me.tabControlAdv1.ShowTabCloseButton = True
Me.tabControlAdv1.ShowCloseButtonForActiveTabOnly = False
'Show Close button for Active tab item
Me.tabControlAdv1.ShowCloseButtonForActiveTabOnly = True
Me.tabControlAdv1.ShowTabCloseButton = True

 

Note:

For both the cases, set ShowTabCloseButton to true.

Sample: http://www.syncfusion.com/downloads/support/directtrac/general/TabControlAdv2141775942.zip

Reference link: https://help.syncfusion.com/windowsforms/tabcontrol/interactive-features

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