Using the Layout Toolbar
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| Exam 70-526 Preparation Guide: Configure controls on a Windows Form at design time to optimize the UI. |
Contents |
The Layout toolbar provides a simple access point to laying out controls on a Form.
The Layout toolbar enables you to align, resize, change spacing, and center controls on the form.
Aligning controls to the grid
When placing any control on the Form, if you also set SnapToGrid to True, then the controls will snap to the grid. However if you left SnapToGrid set to False, then the controls will be placed wherever you put them. In order to align them to the grid, you can use the first button on the Layout toolbar.
Horizontal and vertical alignment
These buttons perform the same functions as the Align sub-menu under the Format menu.
Sizing controls
These buttons perform the same functions as the Make Same Size sub-menu under the Format menu with the exception that the fourth button sizes the control to fit within the current grid.
Horizontal and vertical spacing
These buttons perform the same functions as the Horizontal Spacing and Vertical Spacing sub-menus under the Format menu.
Centering
These buttons perform the same functions as the Center in Form sub-menu under the Format menu.
Ordering
These buttons perform the same functions as the Order sub-menu under the Format menu.
Lock controls
This button performs the same function as the Lock Controls sub-menu under the Format menu.
|

