How to: Set Grid Options for All Windows Forms

As you become used to working in the Visual Studio development environment, you can set preferences for all the forms and projects you work with in the Windows Forms Designer.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Working with Settings.

To set global Windows Forms options

  1. From the Tools menu, select Options.

  2. In the left pane of the Options dialog box, click Windows Forms Designer.

    In the right pane, under the Layout Settings heading, you can set the default grid settings for all the new forms you create. These settings include the grid size, whether controls snap to it, and whether it is on by default. In addition, you can select between SnapToGrid and SnapLines layout modes. For more information on snaplines, see Walkthrough: Arranging Controls on Windows Forms Using Snaplines.

See Also

Tasks

Walkthrough: Arranging Controls on Windows Forms Using Snaplines

How to: Add Controls to Windows Forms

How to: Set the Tab Order on Windows Forms

How to: Set the Text Displayed by a Windows Forms Control

Reference

General, Windows Forms Designer, Options Dialog Box

Windows Forms Controls by Function

Other Resources

Windows Forms Controls

Arranging Controls on Windows Forms

Putting Controls on Windows Forms

Controls to Use on Windows Forms