| View previous topic :: View next topic |
| Author |
Message |
Ramy Guest
|
Posted: Tue Apr 20, 2004 11:24 am Post subject: On KeyPress Event for the application? |
|
|
Hi, how can i create OnKeyPress event that is not depending on a
specific component on the form, and not depend on if specific
component on the form is in focus or not? (some kind of an
'OnKeyPress' for the application.
I want that each time the user press a key on the keyboard the
event function will happen and i'll be able to detect which key
was press.
Thanks
|
|
| Back to top |
|
 |
Eelke Klein Guest
|
Posted: Tue Apr 20, 2004 2:17 pm Post subject: Re: On KeyPress Event for the application? |
|
|
| Quote: | I want that each time the user press a key on the keyboard the
event function will happen and i'll be able to detect which key
was press.
Set the KeyPreview property of the form to true and use the keypress |
event of the form.
Eelke
|
|
| Back to top |
|
 |
Ramy Guest
|
Posted: Tue Apr 20, 2004 3:41 pm Post subject: Re: On KeyPress Event for the application? |
|
|
Thanks very much Eelke!
Eelke Klein <e.klein (AT) mplussoftware (DOT) nl> wrote:
| Quote: | I want that each time the user press a key on the keyboard the
event function will happen and i'll be able to detect which key
was press.
Set the KeyPreview property of the form to true and use the keypress
event of the form.
Eelke
|
|
|
| Back to top |
|
 |
|