|
Subject:
|
Hot Keys
|
|
Posted By:
|
Louisa
|
Post Date:
|
3/8/2004 9:22:35 AM
|
Hi
I have put hotkeys into my project and they show with the appropriate letter underlined, however when I press ctrl, alt and that particular letter nothing happens. What I am doing wrong?
Thanks In Advance Louisa
|
|
Reply By:
|
Imar
|
Reply Date:
|
3/8/2004 10:46:47 AM
|
Hi Louisa,
Are you talking about hot keys assigned by putting an ampersand in the screen name of the control, like a button or menu item? If so, try Alt+Letter. AFAIK, you shouldn't use the Ctrl key, unless you use the Shortcut property of a MenuItem. Some of those shortcuts use the Ctrl key.
Imar
--------------------------------------- Imar Spaanjaars Everyone is unique, except for me.
|
|
Reply By:
|
Louisa
|
Reply Date:
|
3/9/2004 9:01:29 AM
|
Hi Imar,
Yes I am talking about hotkeys where you put an & in front of the letter you want to become hotkeys. How do I assign what keys will activate which action?
Louisa
|
|
Reply By:
|
Louisa
|
Reply Date:
|
3/9/2004 9:06:12 AM
|
Hi Imar,
I have tried the alt and the hotkey this works great for the top of the menu for example file, but what about within the menu such as save, as this doesn't work.
Louisa
|
|
Reply By:
|
Imar
|
Reply Date:
|
3/9/2004 9:17:09 AM
|
For Menu Items, you'll have to assign a Shortcut yourself. Click a Menu Item on the forms designer (make sure you have a Menu Item, not the top-level menu) and then open the Properties dialog. You'll find a Shortcut property that allows you to assign a shortcut like F6 or Ctrl+Shift+W to the menu item. Make sure that ShowShortcut is set to True, so your users are able to see the shortcut.....
I don't think the other "shortcuts", e.g. press Alt+B for a Button with the text &Button are called shortcuts, but rather are called Access Keys (the net effect is the same, though; both allow you to perform an action by pressing keys on your keyboard).
Imar
--------------------------------------- Imar Spaanjaars Everyone is unique, except for me.
|
|
Reply By:
|
Louisa
|
Reply Date:
|
3/9/2004 11:26:35 AM
|
Thanks very much, worked perfectly
Louisa
|
|
Reply By:
|
shadowpug
|
Reply Date:
|
9/27/2004 9:48:15 AM
|
I have assigned hot keys to my application tied to the key down event on a form. However, if there are 40 controls on my form, it's very common that the form does not have focus. Therefore, I can add the same event handler to each control's key down event but that seems extremely tedious. Does anyone have any alternate suggestions?
Ray
|