Underline letter in a button
In my form, I have four buttons that do different tasks. The button.Text field is set开发者_如何转开发 as &Next Project, so the N will be underlined. In the preview of the form, it shows up with the N underlined. Yet when I run my program, the text shows up with no underlining.
Press Alt.
Those keyshortcuts are only working in combination with the Alt-Key, and therefor only show up if it is pressed.
Also there seem to be two ways to always show the Mnemonics:
- Change the Windows Desktop/Theme Settings:
- Right Click Desktop -> Properties
- Got to the Appereance Tab -> Effects
- Uncheck "Hide Underlined letters for keyboard navigation until I press the ALT Key"
- Change the System-Parameters via an API-Call.
精彩评论