0

I need to programmatically cancel the dropdown of a ToolStripDropDownButton in the DropDownOpening event. However I cannot figure out a way to achieve this.

Daniel
  • 1,391
  • 2
  • 19
  • 40

1 Answers1

0

You can either do nothing in the opening event, or disable the control so I can't be interacted with to even generate the opening event:

toolStripDropDownButton.Enabled = false

http://msdn.microsoft.com/en-us/library/system.windows.forms.toolstripitem.enabled

Peter Ritchie
  • 35,463
  • 9
  • 80
  • 98