ClickOnWindow() public static method

Simulates a mouse click on the specified control
public static ClickOnWindow ( Control control ) : void
control System.Windows.Forms.Control the control
return void
Beispiel #1
0
 /// <summary>
 /// Set focus to this scanner
 /// </summary>
 /// <param name="sender">event sender</param>
 /// <param name="e">event args</param>
 private void SwitchLanguageScanner_Shown(object sender, EventArgs e)
 {
     Windows.SetForegroundWindow(Handle);
     Windows.ClickOnWindow(this);
 }
Beispiel #2
0
 /// <summary>
 /// Set focus to this scanner
 /// </summary>
 /// <param name="sender">event sender</param>
 /// <param name="e">event args</param>
 private void FileBrowserScanner_Shown(object sender, EventArgs e)
 {
     Windows.SetForegroundWindow(Handle);
     Windows.ClickOnWindow(this);
 }