p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB.NET 2002/2003 Basics (http://p2p.wrox.com/forumdisplay.php?f=76)
-   -   KeyPress event (http://p2p.wrox.com/showthread.php?t=27293)

jbenson001 March 24th, 2005 03:36 PM

KeyPress event
 
I want to do something when the user presses any key on the Form. I have tried putting code in the Keypress and KeyDown events however the code never executes. Am I missing something?

Thanks,

Jim

bmains March 24th, 2005 04:52 PM

For the form, try setting the keypreview value to false (I believe?, its the opposite of the default value), and try your code then.

Brian


All times are GMT -4. The time now is 09:06 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.