Crazy D @ Work
June 3rd, 1999, 05:20 AM
Hi
I'm having a slighly problem with the keypreview of a form when using a custom control with a textbox on it.
When I set the keypreview to true, it works pretty fine, except for the cursorkeys (vbKeyUp and vbKeyDown to be exact). And those are the ones I want to have in the form_keypress...
It seems that these keys aren't passed to the form. But, with a regular textbox, things work fine... In the keydown/press of the usercontrol, it works fine... but I don't want to check in all keydown/press events to see if the cursorkey was pressed (why else do we have the keypreview...)
Has anyone figured a workaround for this?
Tnx in advance
Crazy D :-)
I'm having a slighly problem with the keypreview of a form when using a custom control with a textbox on it.
When I set the keypreview to true, it works pretty fine, except for the cursorkeys (vbKeyUp and vbKeyDown to be exact). And those are the ones I want to have in the form_keypress...
It seems that these keys aren't passed to the form. But, with a regular textbox, things work fine... In the keydown/press of the usercontrol, it works fine... but I don't want to check in all keydown/press events to see if the cursorkey was pressed (why else do we have the keypreview...)
Has anyone figured a workaround for this?
Tnx in advance
Crazy D :-)