Globally capturing keyboard events for a WinForm application?

  • Thread starter Thread starter Bill Fuller
  • Start date Start date
B

Bill Fuller

I've done this before, but no longer have the code and can't remember how.
Does anyone have an example on how to globally monitor keyboard events for
an application and modify them to treat, for example, an "ENTER" event as a
"Tab" event... or something similar.
 
Gilles Kohl said:
Bill,



Hmm, are you referring to the "KeyPreview" property of the form,

http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.keypreview.aspx

or something more drastic?

Regards,
Gilles.

That looks familier, but I need to set this at application logon to apply to
the main from and all child forms and believe I had to do something in
particular to do this. Also, I need to be able to recognize an Enter key and
treat it as a tab key... same with the down arrow.

Kludgy, I know... but the client is insisting on this behavior.
 
That looks familier, but I need to set this at application logon to apply to
the main from and all child forms and believe I had to do something in
particular to do this. Also, I need to be able to recognize an Enter key and
treat it as a tab key... same with the down arrow.

Kludgy, I know... but the client is insisting on this behavior.

Hmm, a quick search found this:

http://www.syncfusion.com/FAQ/winforms/FAQ_c46c.aspx#q905q

Maybe that's what you used?

Regards,
Gilles.
 
Back
Top