SetForegroundWindow() public static méthode

Brings the thread that created the specified window into the foreground and activates the window. The window is restored if minimized. Performs no action if the window is already activated.
public static SetForegroundWindow ( IntPtr windowHandle ) : void
windowHandle System.IntPtr A handle to the window that should be activated and brought to the foreground.
Résultat void
Exemple #1
0
 /// <summary>
 /// Activates the window.
 /// </summary>
 public void Activate()
 {
     WindowCore.SetForegroundWindow(Handle);
 }