| title | Modifying the Layout Grid | Microsoft Docs | |||||
|---|---|---|---|---|---|---|
| ms.custom | ||||||
| ms.date | 11/04/2016 | |||||
| ms.technology |
|
|||||
| ms.topic | conceptual | |||||
| dev_langs |
|
|||||
| helpviewer_keywords |
|
|||||
| ms.assetid | ec31f595-7542-485b-806f-efbaeccc1b3d | |||||
| author | mikeblome | |||||
| ms.author | mblome | |||||
| ms.workload |
|
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.
-
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.
-
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 Desktop Apps in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see Creating Resource Files for Desktop Apps. For information on globalization and localization of resources in managed apps, see Globalizing and Localizing .NET Framework Applications.
Win32
Dialog Editor States (Guides and Grids)
Controls in Dialog Boxes