R
Rene
Hi,
I am running is some problems with the KeyPreview and KeyPress events.
The KeyPress event is only triggered when there this an focusable control on
the form. When all controls are disabled the Form.KeyPress event does not
trigger anymore.
A way to 'solve' this is to set the focus to the form, but during testing it
happens ofter the keypress event is not getting triggered on keys like
ENTER. Clicking a few times on the main form will get the even triggered
again.
Is there a good solution to solve this, or is there a way to convert the
keys in ProcessCmdKey() to keydata?
TIA,
Rene
I am running is some problems with the KeyPreview and KeyPress events.
The KeyPress event is only triggered when there this an focusable control on
the form. When all controls are disabled the Form.KeyPress event does not
trigger anymore.
A way to 'solve' this is to set the focus to the form, but during testing it
happens ofter the keypress event is not getting triggered on keys like
ENTER. Clicking a few times on the main form will get the even triggered
again.
Is there a good solution to solve this, or is there a way to convert the
keys in ProcessCmdKey() to keydata?
TIA,
Rene