How to: Resize Windows Forms
You can specify the size of your Windows Form in several ways. You can change both the height and the width of the form programmatically by setting a new value for the Size property, or adjust the Height or Width properties individually. If you are using Visual Studio, you can change the size using the Windows Forms Designer. Also see How to: Resize Windows Forms Using the Designer.
To resize a form programmatically
To change form width and height programmatically
The following code example shows the width of the form set to 300 pixels from the left edge of the form, whereas the height stays constant.
To change form size by increments programmatically
The following code example shows the width of the form set to 200 pixels wider than the current setting.
Always use the Height or Width property to change a dimension of a form, unless you are setting both height and width dimensions at the same time by setting the Size property to a new Size structure. The Size property returns a Size structure, which is a value type. You cannot assign a new value to the property of a value type. Therefore, the following code example will not compile.