Ejemplo n.º 1
0
 /// <summary>
 /// Minimizes the window to the taskbar.
 /// </summary>
 public void Minimize()
 {
     try
     {
         TaskbarTools.ShowWindow(Hwnd, 11);
     }
     catch (Exception ex)
     {
         Debug.WriteLine("Window not minimized!\r\n" + ex);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Makes this window the active window.
 /// </summary>
 public void Show()
 {
     try
     {
         TaskbarTools.ShowWindow(Hwnd, 10);
         TaskbarTools.SetForegroundWindow(Hwnd);
     }
     catch (Exception ex)
     {
         Debug.WriteLine("Window not focused!\r\n" + ex);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Closes the window.
 /// </summary>
 public void Close()
 {
     TaskbarTools.SendMessage(Hwnd, 0x0010, IntPtr.Zero, IntPtr.Zero);
 }