How to

send keys to application

Published: 8. January 2009 | Updated: 8. January 2009
License: Microsoft Public License (MS-PL)
Categories: Winforms
Tags: C# Windows Winforms
Was this snippet helpful for you? YESYES / NONO
Get Analyzant!

Check your entire website from code to content in minutes with Analyzant, the free analysis suite.

Free download at analyzant.com

Import namespace

using System.Windows.Forms;

Code

// sends keys to active application
SendKeys.Send("{TAB}");

// sends keys and waits to be processed
SendKeys.SendWait("{TAB}");
Send us feedback about this snippet »



Related Snippets: