Category / Section
How to disable individual XPTaskBarItem in the WinForms XPTaskBar?
1 min read
Disable individual XPTaskBarItem
You can enable or disable the XPTaskBarItems by using the Enabled property of the XPTaskBarBox.
C#
//Enables the XPTaskBarBox item. this.xpTaskBarBox1.Items[0].Enabled = true; //Disables the XPTaskBarBox item. this.xpTaskBarBox1.Items[0].Enabled = false;
VB
'Enables the XPTaskBarBox item. Me.xpTaskBarBox1.Items(0).Enabled = True 'Disables the XPTaskBarBox item. Me.xpTaskBarBox1.Items(0).Enabled = False
Note:
The XPTaskBarItem is enabled, by default.
Figure 1: Before disabling the items in the XPTaskBarBox
Figure 2: After disabling the items in the XPTaskBarBox