Disabling popup menu items on a ContextMenuStrip
Need to dynamically alter the dropdown contents to a ContextMenuStrip
item?
Well the Opening and, if needed, the Closed events are your friends. Use
the opening event to dynamically enable/disable items. You can also
dynamically add new items in which case the Closed event is the place to
remove them again.
|