Send key code to the control

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

Guest

Hi All,
I need to sent key code (for example, like enter) to the textbox control. I need to simulate press key. i think , solution can be by firing message, but i don't know how....


Thanks a lot.
 
You can use System.Windows.Forms.SendKeys.Send method.
USAGE:
using System.Windows.Forms;

SendKeys.Send("{ENTER}")

Nadav said:
You can use the Win32 SendMessage/PostMessage API, use WM_KEYDOWN, WM_KEYUP.
control. I need to simulate press key. i think , solution can be by firing
message, but i don't know how....
 
Back
Top