In a form i have a drawing control called VectorDraw and a textbox. The
text box is disable, when i am using the drawing area i can write some
text, what i want to do is that when i press any key that key show in
the textbox, or if other control has the focus and i press other key
also show in the textbox.
I saw some info about this using the user32.dll like this:
[DllImport("user 32.dll")]
static extern bool TranslateMessag e([In] ref Message lpMsg);
[DllImport("user 32.dll")]
static extern IntPtr DispatchMessage ([In] ref Message lpmsg);
and in the controls keydown event i wrote this:
Message Mssg = new Message();
Mssg.HWnd = control.Handle;
// HERE IS WHERE I DONT KNOW WHAT PARAMETERS ARE THE CORRECT ONES TO USE
Mssg.Msg = ???;
Mssg.LParam = ???;
Mssg.WParam = ???;
TranslateMessag e(ref Mssg);
DispatchMessage (ref Mssg);
Sombody can help me with this???
*** Sent via Developersdex http://www.developersdex.com ***