Winform Tip#5: Programmatically maximize or minimize a form

less than 1 minute read

Use the form's WindowState property.

To minimize:

this.WindowState = System.Windows.Forms.FormWindowState.Minimized;

 

To maximize:

this.WindowState = System.Windows.Forms.FormWindowState.Maximized;

Updated: