You can use the light purple border of the Form Designer pane to change the size of a form as you are designing it. This is primarily useful to make components more visible or accessible during design.
If you want the size of the Form Designer pane to reflect the initial size of the form when it is compiled and run, use Code Generation properties. Once the properties are set as described below, you can drag the Form Designer border to set the initial size of the form during design.
To use the Form Designer border to set the initial form size:
This enables the Form Size, Generate Center, and Generate Size.
![]() |
Setting an initial form size as described above is suitable only for forms that use a Null layout. |
See also | |
---|---|
Form Designer
Modifying Code Generation for a Form |