Using the Layout Toolbar

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
Exam Prep. Guides
70-505 Study Guide
70-526 Study Guide

1. Forms Controls

2. Integrating Data
3. Printing/Reporting
4. Enhancing Usability
5. Asynchronous Prog.
6. Forms Controls
7. Configure/Deploy

edit
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.

Image:526-56.jpg

The Layout toolbar enables you to align, resize, change spacing, and center controls on the form.


Aligning controls to the grid

Image:526-58.jpg


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

Image:526-61.jpg


These buttons perform the same functions as the Align sub-menu under the Format menu.


Sizing controls

Image:526-62.jpg


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

Image:526-63.jpg


These buttons perform the same functions as the Horizontal Spacing and Vertical Spacing sub-menus under the Format menu.


Centering

Image:526-64.jpg


These buttons perform the same functions as the Center in Form sub-menu under the Format menu.


Ordering

Image:526-65.jpg


These buttons perform the same functions as the Order sub-menu under the Format menu.


Lock controls

Image:526-66.jpg


This button performs the same function as the Lock Controls sub-menu under the Format menu.


Previous_Page_.gif Next_Page_.gif
© 2007-2008 Mike Kitchen

Personal tools