| title | Aligning Groups of Controls | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 11/04/2016 | ||
| ms.reviewer | |||
| ms.suite | |||
| ms.technology |
|
||
| ms.tgt_pltfrm | |||
| ms.topic | article | ||
| dev_langs |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | a4f49a73-4a17-44b3-8568-aa35f646b5cf | ||
| caps.latest.revision | 10 | ||
| author | mikeblome | ||
| ms.author | mblome | ||
| manager | ghogen | ||
| ms.workload |
|
The following procedure shows you how to align groups of controls.
-
Select the controls you want to align. Be sure to select the control that you want to be the dominant control first or set it to be the dominant control before executing the alignment or sizing command.
The final position of the group of controls depends on the position of the dominant control. For more information on selecting the dominant control, see Specifying the Dominant Control.
-
From the Format menu, choose Align, and then choose one of the following alignments:
-
Lefts: aligns the selected controls along their left sides.
-
Centers: aligns the selected controls horizontally along their center points.
-
Rights: aligns the selected controls along their right sides.
-
Tops: aligns the selected controls along their top edges.
-
Middles: aligns the selected controls vertically along their middle points.
-
Bottoms: aligns the selected controls along their bottom edges.
-
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.
Requirements
Win32
Arrangement of Controls on Dialog Boxes
Controls in Dialog Boxes
Controls