Show ContextMenuStrip from ToolStripDropDown without dismissing ToolStripDropDown

Posted by Jacob G on Stack Overflow See other posts from Stack Overflow or by Jacob G
Published on 2010-06-17T14:09:10Z Indexed on 2010/06/17 14:13 UTC
Read the original article Hit count: 257

Filed under:
|
|

I have a ToolStrip. In my ToolStrip I have a ToolStripDropDownButton. My ToolStripDropDownButton has a DropDown of type ToolStripDropDown that contains a ToolStripControlHost which contains a Label. I have assigned a ContextMenuStrip to my Label. When I show the DropDown and right-click on the label, the ContextMenuStrip displays correctly, but the original DropDown is dismissed.

I can understand the existence of underlying code to prevent the display of two "ToolStripItems" at the same time and I'm assuming that's what I'm running in to here. Anybody know of a way around it?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about winforms