Using the Form Grid

The Form Grid provides horizontal and vertical guidelines designed to help you align objects on your form, or a Panel that was added from the Toolbox.

ShowGrid − Specifies whether forms display the sizing grid. By default, the grid is turned On. The grid size might differ between Graphical and Fixed screens. For Fixed screens, the grid size depends on the fixed type font and font size.

SnapToGrid − Specifies whether form objects snap to the grid. When this feature is turned on, objects are automatically aligned to the grid when resized or moved. The resizing and movement of objects on the form are constrained to the grid increment when this feature is turned on.

Having SnapToGrid turned on makes it easier to align objects precisely, but limits the freedom with which you can place objects. By default, SnapToGrid is turned On.

To display the grid, select the ShowGrid property in the Properties window of the selected form.

The default Grid Settings can be set in Windows Forms Designer from the Tools, Options dialog box.