Articles in this section
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.

 

Before disabling the items in the WinForms XPTaskBarBox

Figure 1: Before disabling the items in the XPTaskBarBox

After disabling the items in the WinForms XPTaskBarBox

Figure 2: After disabling the items in the XPTaskBarBox

 

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