Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 2.53 KB

File metadata and controls

52 lines (37 loc) · 2.53 KB
title Aligning Groups of Controls | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
controls [C++], aligning
ms.assetid a4f49a73-4a17-44b3-8568-aa35f646b5cf
caps.latest.revision 10
author mikeblome
ms.author mblome
manager ghogen
ms.workload
cplusplus
uwp

Aligning Groups of Controls

The following procedure shows you how to align groups of controls.

To align groups of controls

  1. 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.

  2. 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

See Also

Arrangement of Controls on Dialog Boxes
Controls in Dialog Boxes
Controls