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:

StepsTo use the grid:

  1. Choose Design>Options from the menu bar and select the General tab.

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

NoteHiding the grid Window painting is slower when the grid is displayed, so you might want to display the grid only when necessary.