Missing the _ when making fast access in mainMenu control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am running into the following problem would like to know if this a bug or me doing something wrong.

Using C# with visual studios 2003. I make a form and add a mainMenu Control.
Now I type in "&File". Then in the underlaying menu I make the following menu items.
"&Open"
"&New"
"&Print"
"E&xit"

I run the program but to my big suprice there is no _ under F of the word File. Same with menu items Open, New, Print and Exit. If I press the ALT key then the _ shows up. Why those this happen. In my opinion it should always be there the _ symbol.

Bardo
 
Bardo,
I run the program but to my big suprice there is no _
under F of the word File. Same with menu items Open,
New, Print and Exit. If I press the ALT key then the _
shows up. Why those this happen. In my opinion it
should always be there the _ symbol.
Its a feature of Windows XP & possibly Windows 2000.

Under Windows XP: You can control it by right clicking on the Desktop &
selecting Properties, select the Appearance tab, and click the Effects
button, then uncheck 'Hide underlined letters for keyboard navigation until
I press the Alt key' option , finally click Ok on both dialog boxes.

Hope this helps
Jay

bardo said:
I am running into the following problem would like to know if this a bug or me doing something wrong.

Using C# with visual studios 2003. I make a form and add a mainMenu Control.
Now I type in "&File". Then in the underlaying menu I make the following menu items.
"&Open"
"&New"
"&Print"
"E&xit"

I run the program but to my big suprice there is no _ under F of the word
File. Same with menu items Open, New, Print and Exit. If I press the ALT key
then the _ shows up. Why those this happen. In my opinion it should always
be there the _ symbol.
 
Thanks Jay,

I removed the check and the problem is solved. Thanks.
Jay if you read this by change could you maybe take the time and explain to me why programs like Visual Studios and All the office programs (and many more) still show "_" (mnemonic) regardless of what is checked in the option "Hide underlined letters for keyboard navigation until"I press the Alt key' option "

Thanks bardo
 
Bardo,
Simple Visual Studio & Office effectively use Owner Draw menus.

Remember VS & Office don't really have a "menu" or a "toolbar" they have
CommandBars, where you can put a "menu" item on a toolbar, and a "toolbar
item" on a menu.

I'm not sure if they start with an actual Win32 Menu object & Toolbar object
and extend it, or if it is 100% custom code.

Hope this helps
Jay

Bardo said:
Thanks Jay,

I removed the check and the problem is solved. Thanks.
Jay if you read this by change could you maybe take the time and explain
to me why programs like Visual Studios and All the office programs (and many
more) still show "_" (mnemonic) regardless of what is checked in the option
"Hide underlined letters for keyboard navigation until"I press the Alt key'
option "
 
Back
Top