How do I resize a Windows Forms form in C#?

user1713155 picture user1713155 · Oct 2, 2012 · Viewed 21.4k times · Source

I am making a Windows Forms application. I want the forms height to increase after a button is pressed. How do I do this?

Answer

CrazyCasta picture CrazyCasta · Oct 2, 2012

Use the Height property. For instance:

this.Height = newHeight;