Hot keys
-
Hi.. I want to add hotkey functionality to a VB6 form.. but I can't find a control that can help .. any help please ?
-
Hi.. I want to add hotkey functionality to a VB6 form.. but I can't find a control that can help .. any help please ?
Do you mean the type of hotkeys where a letter of the caption is underlined and you must press "Alt" plus the letter to access it? If that is the case, you must use "&" in front of the letter you wish underlined in the caption. For example, to make the "C" of a cancel button the hotkey, the caption would be typed as this: "&Cancel" Hope that helps.
-
Do you mean the type of hotkeys where a letter of the caption is underlined and you must press "Alt" plus the letter to access it? If that is the case, you must use "&" in front of the letter you wish underlined in the caption. For example, to make the "C" of a cancel button the hotkey, the caption would be typed as this: "&Cancel" Hope that helps.
thank you for your reply .. but mean to support function keys (F1-F12) I made it by setting the form's KeyPreview property to True and check for the KeyCode in the keydown event:)