Search code examples
c#.netvb.netcontextmenucontextmenustrip

How to display ContextMenu underlined text at execution time?


This is my ContextMenu, as you can see I put some dashes under specific letters to acces to the menu items via Keyborad, so for example for the Close menu item I only need to press C (Not necessary Ctrl+C)

enter image description here

But I have two issues here:

1· The underlined text is not shown at execution time, I don't know if this is normal but I would like to show them.

enter image description here

UPDATE

I've found a comment here explaining that an option on the Easy Of Access controlpanel need to be activated in order to display the underlined keys... but I didn't find that option (Im on Windows 8), anyways my intention is to display them without touching the SO settings.

2· Is it possibly to hack the menu item's ShortCutKeys property to avoid the usage of a modifier to display something like None + C ? because it's stupid display info of a modifier when I previously set an underlined character to avoid the modifiers usage...


Solution

  • Just press the Alt at the execution time.