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