Link to home
Start Free TrialLog in
Avatar of jrcp
jrcpFlag for Afghanistan

asked on

Capturing KeyStrokes

How can I capture a users keystrokes at all times even so it doesn't matter what control has focus?

So no matter where they are on a form and they push F5 I can be waiting for that keystroke.

Thanks for any help!
ASKER CERTIFIED SOLUTION
Avatar of mcrider
mcrider

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 bharatn
bharatn

You can use Keypress,keydown,keyup for events like textbox,commandbutton etc. for Focus on the forms you have to set the keypreview property of the form to true and it'll trigger !!!

try it out
bharat
Thanks for the points! Glad I could help!


Cheers!