/// <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); } }
/// <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); } }
/// <summary> /// Closes the window. /// </summary> public void Close() { TaskbarTools.SendMessage(Hwnd, 0x0010, IntPtr.Zero, IntPtr.Zero); }