Articles in this section

How to show or hide the collapse and expand buttons in the WinForms XPTaskBar?

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 WinForms XPTaskBar

Figure 1: Collapse button in XPTaskBar

Collapse button hidden in WinForms 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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied