Modifying the Layout Grid
The latest version of this topic can be found at Modifying the Layout Grid.
When you are placing or arranging controls in a dialog box, you can use the layout grid for more precise positioning. When the grid is turned on, controls appear to "snap to" the dotted lines of the grid as if magnetized. You can turn this "snap to grid" feature on and off and change the size of the layout grid cells.
To turn the layout grid on or off
From the Format menu, choose Guide Settings.
In the Guide Settings Dialog Box, select or clear the Grid button.
You can still control the grid in individual Dialog editor windows using the Toggle Grid button on the Dialog Editor Toolbar.
To change the size of the layout grid
From the Format menu, choose Guide Settings.
In the Guide Settings Dialog Box, type the height and width in DLUs for the cells in the grid. The minimum height or width is 4 DLUs. For more information on DLUs, see The Arrangement of Controls on Dialog Boxes.
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