capture key strokes

capture key strokes

Post by a » Thu, 16 Sep 2004 04:39:40


My app has 1 form with several controls on it. I would like to be able
to capture keystrokes regardless of which control has focus.

i.e. When they hit ctrl + B keys, I would like to bring up a password
message box.

can anyone help with this please?
 
 
 

capture key strokes

Post by eschuylerT » Thu, 16 Sep 2004 04:55:47


Set the form's KeyPreview property to True and you can capture all
keystrokes in the Form_KeyPress and/or Form_KeyDown events.

Regards,
Eric

 
 
 

capture key strokes

Post by a » Thu, 16 Sep 2004 04:57:35


that does not seem to work when my webbrowser control has focus.
also, it does not capture leys like ALT and CTRL


On Tue, 14 Sep 2004 15:55:47 -0400, XXXX@XXXXX.COM
 
 
 

capture key strokes

Post by a » Thu, 16 Sep 2004 05:00:16


nevermind, that problem was only with keypress. keydown works great,
thx.