Keyboard shortcuts....

H

Helene Day

Sorry, this could be a newby question... but how do we do the keyboard
shortcuts in .NET

buttonname.text = "&Click Me"

Does not give the short cut Alt-C for the button.

Helene
 
H

Helene Day

Ok... looks like the shortcuts are not displayed until someone press the Alt
key for the first time....
How can I force them to be displayed?

Thanks for your help,

Helene
 
K

Ken Halter

Helene said:
Ok... looks like the shortcuts are not displayed until someone press the Alt
key for the first time....
How can I force them to be displayed?

Thanks for your help,

Helene

This is a "feature" of any OS >= Win2k. It's a control panel display
applet option... check any of these old posts for a "cure". This'll only
effect your PC... The end user will be responsible for their own setting.

Results 1 - 49 of about 112 for "alt-key "hide navigation"" -dotnet
group:*.vb.*. (2.06 seconds)
http://groups.google.com/groups?as_..._ugroup=*.vb.*&as_scoring=d&lr=&num=100&hl=en
 
H

Helene Day

Many thanks for the info Ken.

Here is my fix for now:

Private Sub MyForm_Activated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Activated
' Kludge to enable the shortcuts... since I am not using Alt-Z ....

System.Windows.Forms.SendKeys.Send("%z")

End Sub
 
O

Oenone

Helene said:
Here is my fix for now: [...]
' Kludge to enable the shortcuts... since I am not using Alt-Z

Presumably if the user has selected not to see the shortcut accelerators
until they press Alt, this is because they don't want to see the shortcut
accelerators until they press Alt. I accept that this is the default setting
and agree that it's a crappy feature, but it is a user preference and they
can change it if they don't like it. Forcing your preference on the user
could be considered a bit rude...

Can't you just follow the default behaviour and allow the user to control
whether the accelerators are displayed or not?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top