Aligning controls using the grid
The Window painter provides a grid to help you align controls at
design time. You can use the grid options to:
-
Make controls snap to a grid position when you place them or
move them in a window -
Show or hide the grid when the workspace displays
-
Specify the height and width of the grid cells
To use the grid
-
Choose Design>Options from the menu bar and select the
General tab. -
Do one or more of the following:
-
Select Snap to Grid to align controls with a horizontal
and vertical grid when you place or move them -
Select Show Grid to display the grid in the Layout
view -
Specify the width of each cell in the grid in pixels in
the X text box -
Specify the height of each cell in the grid in pixels in
the Y text box
-
Hiding the grid
Window painting is slower when the grid is displayed, so you
might want to display the grid only when necessary.