The Layout menu Spacing command accesses a submenu of commands that enable you to neatly and logically space your controls across or down the form or container control.
The Spacing submenu commands and the corresponding toolbar buttons are listed in the following table.
Command | Toolbar Button | Description |
---|---|---|
Space Evenly Down | Spaces the selected controls evenly down the container | |
Space Evenly Across | Spaces the selected controls evenly across the container | |
Spread Down Container | Spreads the selected controls evenly down the entire container | |
Spread Across Container | Spreads the selected controls evenly across the entire container | |
Vertically Adjacent | Makes the selected controls vertically adjacent | |
Horizontally Adjacent | Makes the selected controls horizontally adjacent | |
Vertical Standard Spacing | Automatically spaces controls vertically | |
Horizontal Standard Spacing | Automatically spaces controls horizontally | |
Top/Right Command Buttons | Positions command buttons at top right | |
Bottom/Right Command Buttons | Positions command buttons at bottom right |
You cannot select the Space Evenly Across, Space Evenly Down, Horizontally Adjacent, and Vertically Adjacent commands if you have not yet selected a group of controls (that is, they are disabled). To enable the Space Evenly Across and Space Evenly Down commands, you must select at least three controls.
When using the Vertical Standard Spacing, Horizontal Standard Spacing, Vertically Adjacent, and Horizontally Adjacent commands or toolbar buttons, the position of the master control (that is, the control that is displayed with sizing handles) remains unchanged and not the control that is in the top or the farthest left position.