c# minimize code code example Example: c# minimize form this.WindowState = FormWindowState.Minimized;