Zitat: |
It is possible to do this but its not intuitive: 1. Drag a ContextMenuStrip onto your form, it will be named contextMenuStrip1 2. Add a menu item to the context menu to contextMenuStrip1 3. Drag another ContextMenuStrip onto your form, it will be named contextMenuStrip2 4. Select the menu item created in 2 and set its DropDown property to contextMenuStrip2 5. Change ShowImargeMargin for both contextMenuStrip1 and contextMenuStrip2 to false And that's it. For every submenu you create you will need a separate context menu strip which is a bit silly. I actually suggest that you post a suggestion on the Microsoft Product Feedback Center suggesting that the menu items follow their parent (in this case the ContextMenuStrip) when it comes to displaying the image margin. |
![]() ![]() |
Hallo Schorschie,
schön, daß ich dir mit dem Link weiterhelfen konnte (s.a. http://www.mycsharp.de/wbb2/thread.php?postid=3693777#post3693777 ;-)) Ich hatte gar nicht gesehen, daß du auch gestern hier im Forum gepostet hattest. |
Entwickler-Ecke.de based on phpBB
Copyright 2002 - 2011 by Tino Teuber, Copyright 2011 - 2025 by Christian Stelzmann Alle Rechte vorbehalten.
Alle Beiträge stammen von dritten Personen und dürfen geltendes Recht nicht verletzen.
Entwickler-Ecke und die zugehörigen Webseiten distanzieren sich ausdrücklich von Fremdinhalten jeglicher Art!