This documentation is archived and is not being maintained.
Windows Forms Designer, Options Dialog Box
Visual Studio .NET 2003
Allows you to change the default settings for the grids on visual designers within Visual Studio. You can open the Options dialog box from the Tools menu.
- Grid Size
- Sets the spacing in pixels between horizontal and vertical gridlines on the designer. The default size is 8, 8.
- Show Grid
- Specifies whether designers display the sizing grid. By default, the grid is on.
- Determines whether designers will snap objects and controls to the grid. In other words, the resizing and movement of elements on the designer are constrained to the GridSize increment when this feature is turned on. Having SnapToGrid turned on makes it easier to line up the various aspects of the user interface precisely, but limits the freedom with which one can place controls. By default, SnapToGrid is turned on.
Tip For information on how to set the size of the positioning grid on the form itself, see Setting Grid Options for All Windows Forms
Setting Grid Options for All Windows Forms | Snapping Controls to the Grid in Windows Forms