Link to home
Start Free TrialLog in
Avatar of anand_007
anand_007

asked on

Trapping multiple keys

Got a problem - need to trap more than one keys eg: ctrl+enter or ctrl+enter+F1 etc. I am managing but putting in a loop and using the keyDown event. Then I need 2! in case of two key strokes and 3! in case of three key strokes. If this were to be done over all the objects like combo/text box I am using, it becomes pretty painful. Is there an alternative?? Thanx in advance
Avatar of AKbor75
AKbor75

i was thinking about hotkeys, but couln't find anything.
a key with a shift key (alt, ctrl, shift) can be trapped at once, but 2 keys with a shift key can't.

but i don't think i't a big problem.
let's say ctrl+enter is the standard combo, that you just have to remember if that combo has been typed, and the addidtional key can be trapped after that.

ASKER CERTIFIED SOLUTION
Avatar of milowe
milowe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of anand_007

ASKER

Thanx a ton for the help!
The key codes can be got by doing a search on Keycode Constants in MSDN Library  (I use October 99)