Share via


Creating and Setting Guides and Margins

 

The latest version of this topic can be found at Creating and Setting Guides and Margins.

Whether you are moving controls, adding controls, or rearranging a current layout, guides can help you align controls accurately within a dialog box. Guides appear as blue dotted lines across the dialog box displayed in the editor and corresponding arrows in the rulers (at the top and along the left side of the Dialog editor).

When you create a dialog box, four margins are provided. Margins are modified guides, appearing as blue dotted lines.

To create a guide

  1. Within the ruler, click once to create a guide. (One click creates a new guide; double-clicking launches the Guide Settings Dialog Box in which you can specify guide settings.)

To set a guide

  1. On the dialog box, click the guide and drag it to a new position. (You can also click the arrow in the ruler to drag the associated guide.)

    The coordinates of the guide are displayed in the status bar at the bottom of the window and in the ruler. Move the pointer over the arrow in the ruler to display the exact position of the guide.

To delete a guide

  1. Drag the guide out of the dialog box.

- or -

  • Drag the corresponding arrow off the ruler.

To move margins

  1. Drag the margin to the new position.

    To make a margin disappear, move the margin to a zero position. To bring the margin back, place the pointer over the margin's zero position and move the margin into position.

For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.

Requirements

Win32

See Also

Dialog Editor States (Guides and Grids)
Controls in Dialog Boxes