The Form Editor provides you with the following drawing
aids to help you position controls on a form:
- You can display
a drawing grid to help you position controls on a form. A drawing
grid contains a series of dots that represent where the horizontal
and vertical lines intersect. You can force your controls to snap
to these lines, or you can just use the grid as a visual aid to
help position and align controls.
- You can use
guidelines at the edges of your form to ensure that controls are
not placed within a certain distance from the border of the form.
- You can display
rulers at the top and left sides of your form.
You can also align controls to each other. For more information,
see Aligning Controls.
Procedure: How to Display a Drawing Grid and Guidelines
display a drawing grid and guidelines, do one of the following:
- In the View
menu, click Grid.
- Click the Toggle
grid button on the
Procedure: How to Change Drawing Grid Settings
In the Layout menu, click Grid settings.
The Grid Settings dialog box opens.
the size you want for each grid block in the Guidelines box.
the width and height of the grid in the Spacing box.
The width and height of the grid will be measured against
the edges of the form.
one or all of the grid setting options:
Grid displays a grid on a form.
to Grid automatically snaps controls to the closest
to Center automatically centers each control around
the gridline closest to the center of the control, in relation to
its borders. In this mode, resizing of controls is prevented. Snap
to Grid must be enabled before selecting the Snap to Center option.
want these settings to apply to this form only, select Apply
to this form only.
Procedure: How to Display Rulers
sure that the form you want to display rulers in is the active window.
View menu, click Rulers.
Click the Toggle rulers button on the
Reference: Grid Settings Dialog Box
You use the Grid
Settings dialog box, shown in the following image, to determine settings for your grid.
Displays the grid on the form.
Snap to Grid
Causes controls to snap to the gridlines.
Snap to Center
Causes controls to snap to the center lines of the grid within
the control borders.
Determines the distance between gridlines. The default is
Determines how much blank space to leave at the top, bottom,
right, and left sides of a form. Blue lines on your form represent
where this border begins. You cannot place controls outside of these
Apply to this form only
Applies these settings to this form only, leaving the settings
for other forms unchanged.