Injecting keyevents

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi:
I need to develop an onscreen keyboard for a WinForm application - the keyboard will be part of the same application. Is there a way to inject keypress events into the message loop of the application so as to avoid having to handle each keypress explicitly for whatever is the currently focused control?

Thanks
Lionel
 
What about the System.Windows.Forms.SendKeys class? Will that work in your
situation?

--
Tim Wilson
..Net Compact Framework MVP
{cf147fdf-893d-4a88-b258-22f68a3dbc6a}
LJJ said:
Hi:
I need to develop an onscreen keyboard for a WinForm application - the
keyboard will be part of the same application. Is there a way to inject
keypress events into the message loop of the application so as to avoid
having to handle each keypress explicitly for whatever is the currently
focused control?
 
Tim:
I had totally missed the SendKeys class and it is exactly what I needed

Thank you VERY much - you just saved me an awful lot of time
Lionel
 
Back
Top