Click to See Complete Forum and Search --> : Date from keyboard


ohadbp
September 5th, 2001, 10:46 AM
hi,

i want to do some code when the user press on one of the numbers keys in the keyboard.

i added the code in the event keypress of the form.
problem is that it doesnt work when one of the controls is in focus.

do i really need to add the same code for the event keypress for all the control in my form?
isn't there an easier way?

thanks,
ohad.

michi
September 5th, 2001, 11:02 AM
Did you set the KeyPreview property of the form to True?

Regards,

Michi