I have a C# form into which I've placed a left-docked MenuStrip
. This MenuStrip
contains some menu items which contain submenus, and some menu items which are effectively buttons (clicking on them results in an action taking place; n.b., I realize this is not a good design).
I would like to have the menu items which have menus associated with them draw the right-pointing arrow on the menu item, the same way a contextual menu does. I've subclassed ToolStripProfessionalRenderer
and can call OnRenderArrow()
at the appropriate time (e.g., within OnRenderItemText()
or similar), but I don't seem to have a way to determine the correct location of the arrow.
So, two interrelated questions here:
- Is there a way to force the arrows to be drawn on top-level menu items?
- If not, is there a way to determine the proper location of the arrow on the menu item so that
OnRenderArrow()
can be called manually?
Thanks!