Windows forms: this.WindowState = FormWindowState.Minimized; WPF: this.WindowState = WindowState.Minimized;