I have a ToolStripDropDownButton
where the subitems have CheckOnClick
enabled.
I want to give the user the ability to pick more than one item before closing the drop down, but I can't find a way of doing that without setting AutoClose
to false
and doing so presents another problem, which is how to close it when the user clicks anywhere outside the control (which is when it should close it).
I've seen the similar question How do I close a toolstripmenuitem that is set to autoclose = false? but the suggestion of putting a handler for the Click
event on every component is not exactly what I'm after. It should be when it loses focus, regardless of whether it's through mouse or keyboard control.
I looked at the Leave
but while ToolStrips themselves have that event, apparently the ToolStripDropDownButton doesn't.
What would the best way to do this be?