MainMenu does not display underscore when using & and pressing ALT

I am using the MainMenu control (and not the MenuStrip) in WinForm. In the design view, I can put it in the text box, and it will display an underline, but when the program is launched and I press ALT, it will not appear.

Also for some reason the '&' character is actually drawn (like & File) onto the display when used at the top level.

Has anyone had this problem before and resolved it? I searched around and did not find a solution, except for drawing my own, but this seems like a problem that should be solvable, since it is built into the control.

thanks

+4
source share
2 answers

Is Form.MainMenu on your MainMenu ?

For SubMenuItems, also check the appropriate Windows settings: in WinXp, it is located in the "Display Properties / Appearance / Effects" section on XP

0
source

make sure that the items in the menu have properties ShowShortCutKeys = true.

0
source

All Articles