G
Guest
I have put up a previous post about this issue, but since I can't seem to
re-product the problem in any kind of simple example, no one has been able to
help. The basic problem is this: I have a user control, it handles the
KeyPress event, looks for the Enter Key, and does something. It works fine
most of the time. In my application, If the form it is on looses focus, then
you return to the form, the key press event is not called if the key that
was pressed was the enter key. (There is NO accept button on the form; The
AccpetsEnterKey is set to true; KeyPreview on the form is false)
Anyway, since we can't fix the REAL problem, I need a work around. Is there
any way to capture the keypress event on a deeper level than the form? (I
tried adding an event handler to the .findform of the control, but that does
not work either.) Is there some kind of SYSTEM event I can latch on to?
Thanks.
--Zorpy
re-product the problem in any kind of simple example, no one has been able to
help. The basic problem is this: I have a user control, it handles the
KeyPress event, looks for the Enter Key, and does something. It works fine
most of the time. In my application, If the form it is on looses focus, then
you return to the form, the key press event is not called if the key that
was pressed was the enter key. (There is NO accept button on the form; The
AccpetsEnterKey is set to true; KeyPreview on the form is false)
Anyway, since we can't fix the REAL problem, I need a work around. Is there
any way to capture the keypress event on a deeper level than the form? (I
tried adding an event handler to the .findform of the control, but that does
not work either.) Is there some kind of SYSTEM event I can latch on to?
Thanks.
--Zorpy