Exemplo n.º 1
0
 /// <summary>
 /// Brings the control to the front of the z-order.
 /// </summary>
 /// <remarks>
 /// <para>
 /// This method hides the <see cref="Control.BringToFront"/> method and P/Invokes
 /// SetForegroundWindow(HWND) instead.
 /// </para><para>
 /// The SetForegroundWindow function puts the thread that created the specified window into the
 /// foreground and activates the window. Keyboard input is directed to the window, and various
 /// visual cues are changed for the user. The system assigns a slightly higher priority to the
 /// thread that created the foreground window than it does to other threads.
 /// </para>
 /// </remarks>
 public new void BringToFront()
 {
     SystemWindow.SetForegroundWindow(Handle);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Displays the splash screen
 /// </summary>
 public new void Show()
 {
     SystemWindow.SetForegroundWindow(Handle);
     base.Show();
     Update();
 }
Exemplo n.º 3
0
 private static void ForceKioskMode(Control control)
 {
     SystemWindow.SetTaskBarVisibility(control.Handle, false);
     SystemWindow.SetForegroundWindow(control.Handle);
 }