Disable bar items in Windows Forms PopupMenu
3 Sep 2020 / 1 minute to read
NOTE
- This feature is not applicable for ListBarItem and StaticBarItem.
- In this illustration we have used BarItem. Similarly, we have to set for ParentBarItem, DropDownBarItem,ComboBoxBarItem, ListBarItem, StaticBarItem and TextBoxBarItem.
We can disable the unused or unsupported bar items by using this feature. BarItems are enabled by default when they are created, but this can be changed based on user requirement through the Enabled
property.
The below code snippet will explain how to disable the BarItems.
this.barItem1.Enabled = false;
this.barItem4.Enabled = false;
Me.barItem1.Enabled = False
Me.barItem4.Enabled = False
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page