PDA

Click to See Complete Forum and Search --> : shortcut


Heike
Sep 6th, 2002, 05:14 AM
I have a problem with shortcuts on buttons.
Just like I know from VB6 and like I read in a VB.net documentation I use the ampersand & in the text property to assign a shortcut to my button (e.g. button.text = "&Cancel"). Now I have a funny effect: the first time I open my form, everything looks like expected, the shortcut letter has an underscore. But when I open the form a second time, no underscore is there.
Perhaps you need to know that I am developing an AddIn for Word2000.

Any ideas?

Dozo_1st
Sep 6th, 2002, 05:37 AM
Do you edit the text of the button during runtime? what is the code?

Heike
Sep 6th, 2002, 05:50 AM
No, I don't edit the text during runtime. This behaviour is in all of my forms the same. Once I opened a form, no underscore is seen in any form. Not in the button and not in my menu either. I need to click ALT to see the shortcut.

Bananafish
Mar 10th, 2003, 05:49 AM
Access Keys
-----------
The issue regarding the visbility of access key markers on the menu is apparently an Operating System feature for Win2K. To display the access keys the Alt key must be depressed.

This feature can be turned of by going to Conrol Panels->Display->Effects->Visual Effects and uncheck Hide keyboard navigation indicators until I use the Alt key.