)
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 show or hide the collapse and expand buttons in the WinForms XPTaskBar?

Platform: WinForms |
Control: XPTaskbar |
Published Date: April 30, 2011 |
Last Revised Date: February 6, 2020

Show or hide the collapse and expand buttons

In the XPTaskBar, the property named ShowCollapseButton in the XPTaskBarBox helps to show or hide the collapse and expand buttons.

C#

//Shows expand and collapse buttons in the header.
this.xpTaskBarBox1.ShowCollapseButton = true;
//Hides expand and collapse buttons in the header.
this.xpTaskBarBox1.ShowCollapseButton = false;

VB

'Shows expand and collapse button in the header.
Me.xpTaskBarBox1.ShowCollapseButton = True
'Hides expand and collapse button in the header.
Me.xpTaskBarBox1.ShowCollapseButton = False

 

Note:

1. XPTaskBarBox has a property, ShowCollapseButton that returns a Boolean value.

2. The default value of the ShowCollapseButton is true.

 

Show collapse button in XPTaskBar

Figure 1: Collapse button in XPTaskBar

Collapse button hidden in XPTaskBar

Figure 2: Collapse button hidden in XPTaskBar

Samples:

C#: XPTaskBar_CollapseButton_Visibility_C#

VB: XPTaskBar_CollapseButton_Visibility_VB

Reference link: https://help.syncfusion.com/windowsforms/xptaskbar/xptaskbar-box-settings#button-settings

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