I have a Form with a button . I want to press the Button in form instead of "W" key on keyboard and the "W" key become active and write in notepad "W".
that's very simply .
What's the Class or Method for this action?
I have a Form with a button . I want to press the Button in form instead of "W" key on keyboard and the "W" key become active and write in notepad "W".
that's very simply .
What's the Class or Method for this action?
invoke "on screen keyboard" / avoid re-inventing the wheel where possible. the executable is osk.exe. In c#
Process.start("osk.exe")
this is equivalent to typing in osk.exe at commandprompt.
if you prefer not to use this for your application, on your form button click
System.Windows.Forms.SendKeys.Send("W");
should do the job