Articles in this section
Category / Section

How to hide the ‘X’ close button on an XPTaskPane

1 min read

 

Use the XPTaskPane's HeaderRightToolbar property to capture the XPToolbar on the right-top corner of the XPTaskPane. Then access its Items Collection and set the second BarItem (index value = 1, which is actually the 'X' close button) Visible property to False as shown in the code below:

C#

Syncfusion.Windows.Forms.Tools.XPMenus.BarItem bitem =this.xpTaskPane1.HeaderRightToolbar.Items[1];

bitem.Visible = false;

VB

Syncfusion.Windows.Forms.Tools.XPMenus.BarItem bitem =Me.xpTaskPane1.HeaderRightToolbar.Items(1)

bitem.Visible = False

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