Live Chat Icon For mobile
Live Chat Icon

How can I programmatically maximize or minimize a form

Platform: WinForms| Category: Form

Use the form’s WindowState property.


//minimize
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
.....
//maximize
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.