You can change the size of a form in the Form Editor by dragging the form's light purple border. This is primarily useful to make components more visible or accessible during design.
If you want the size of the form in the Form Editor to reflect the initial size of the form when it is compiled and run, use the Code properties in the form's Properties window. Once the properties are set as described below, you can set the form's initial size by dragging the form's border in the Form Editor.
To set the initial form size in the Form Editor:
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 | |
---|---|
Modifying Code Generation for a Form |