473,327 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Keyboard shortcuts....

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
Nov 21 '05 #1
4 2317
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

"Helene Day" <noSpam@noSpam> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
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

Nov 21 '05 #2
Helene Day wrote:
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_e...&num=100&hl=en

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..
Nov 21 '05 #3
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

"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:ey**************@TK2MSFTNGP15.phx.gbl...
Helene Day wrote:
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_e...&num=100&hl=en
--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..

Nov 21 '05 #4
Helene Day wrote:
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?

--

(O)enone
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Spartanicus | last post by:
Some use the kbd element (Example: <kbd>Ctrl</kbd>+<kbd>G</kbd>) to mark up keyboard shortcuts, but the spec defines kbd as: "Indicates *text* to be entered by the user." (emphasis mine). UA...
0
by: ekta | last post by:
How do we write the code for Keyboard shortcuts in asp.net(c#).Is it possible through javascript only or there is any method/property availaible (like Accesskey) in asp.net. Thanks
5
by: bob lambert | last post by:
Hi, I have a vb .net std 2002 windows form app and wanted to use keyboard shortcuts (& in text property input) It shows up on the design view, but when I build (in debug mode) and display the...
1
by: Erland | last post by:
Hello, I am using asp.net 2.0 and I want to add keyboard shortcuts to my application just like the shortcuts you see in GMAIL. I was wondering how can I do this in ASP.NET? Scenerio that would...
0
by: Zytan | last post by:
I cannot use & to implement a keyboard shortcut on a TabPage like I can on a Button. Is there a way to easily do this? Maybe TabPages aren't supposed to have keyboard shortcuts, but it would be...
331
by: Xah Lee | last post by:
http://xahlee.org/emacs/modernization.html ] The Modernization of Emacs ---------------------------------------- THE PROBLEM Emacs is a great editor. It is perhaps the most powerful and...
1
by: fiazbfs | last post by:
I would like to know the Keyboard Shortcuts for "Apply Filter", "Filter by Form", "Filter by Selection" in datasheet / form view. It is very annoying to just be able to use the mouse for this...
8
by: BD | last post by:
How can I duplicate the behavior of the operating system shortcut keys in my application? For example, my windows form has 5 controls (textboxes), the operating system will pickup which control...
1
by: Gilbert Tordeur | last post by:
Hello, Context = Web site with VB2008. Is it possible to define keyboard shortcuts on a webpage, to make it possible for the user to "click" on a button or a link, or to set the focus on a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.