By docs.microsoft.com Definition Namespace: System.Windows.Forms Assembly:System.Windows.Forms.dll Sends keystrokes to the active application. C# Parameters keys String The string of keystrokes to send. Exceptions InvalidOperationException There is not an active application to send keystrokes to.ArgumentException keys does not represent valid keystrokes Examples The following code example demonstrates how to use the Send method.To run the example, paste the following code in a form called Form1 containing a button called Button1. Ensure the click events are associated with their event-handling methods in this example. The button control’s TabIndex property should be set to 0. When the example is running, double-click the form … Continue reading SendKeys.Send(String) Method