Pressing a key in c#
I'm developing a program that searches for a running program and press a button 开发者_开发百科on it automatically But How can I press the enter key on the keyboard from my code (send the command of the enter key)? Thanks.
You can use SendKeys.
Please check this CodeProject tutorial for detailed How To.
精彩评论