Using the grid in the Form painter

The Form painter provides a grid to help you align controls.

NoteAbout the grid The Form painter grid is invisible. You cannot see it in the Layout view, but your controls can snap to the grid as you move them.

StepsTo use the grid in the Form painter:

  1. Select Design>Options from the menu bar.

  2. Use the options on the General page to:

    • Make controls snap to a grid position when you place them or move them in a form

    • Specify the size (height and width) of the grid cells

The options are:

Option

Meaning

Snap to Grid

If selected, controls snap to the grid when you place or move them

X

The width of each cell in the grid in pixels

Y

The height of each cell in the grid in pixels