You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6a82f4b
Browse filesBrowse the repository at this point in the historyBrowse files
The following procedure shows you how to align groups of controls.
9
+
For information on adding resources to managed projects, see [Resources in Desktop Apps](/dotnet/framework/resources/index) 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](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index).
10
10
11
-
### To align groups of controls
11
+
The following procedures show you how to align controls:
12
+
13
+
## To align groups of controls
12
14
13
15
1.[Select the controls](../windows/selecting-multiple-controls.md) 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.
14
16
15
17
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](../windows/specifying-the-dominant-control.md).
16
18
17
-
2. From the **Format** menu, choose **Align**, and then choose one of the following alignments:
19
+
1. From the **Format** menu, choose **Align**, and then choose one of the following alignments:
18
20
19
21
-`Lefts`: aligns the selected controls along their left sides.
20
22
@@ -28,7 +30,39 @@ The following procedure shows you how to align groups of controls.
28
30
29
31
-`Bottoms`: aligns the selected controls along their bottom edges.
30
32
31
-
For information on adding resources to managed projects, please see [Resources in Desktop Apps](/dotnet/framework/resources/index) 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](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index).
33
+
## To even the spacing between controls
34
+
35
+
The **Dialog** editor enables you to space controls evenly between the outermost controls selected.
36
+
37
+
1. Select the controls you want to rearrange.
38
+
39
+
1. From the **Format** menu, choose **Space Evenly**, and then choose one of the following spacing alignments:
40
+
41
+
-`Across`: space controls evenly between the leftmost and the rightmost control selected.
42
+
43
+
-`Down`: space controls evenly between the topmost and the bottommost control selected.
44
+
45
+
## To center controls in a dialog box
46
+
47
+
1. Select the control or controls you want to rearrange.
48
+
49
+
1. From the **Format** menu, choose **Center In Dialog**, and then choose one of the following arrangements:
50
+
51
+
-`Vertical`: center controls vertically in the dialog box.
52
+
53
+
-`Horizontal`: center controls horizontally in the dialog box.
54
+
55
+
## To arrange push buttons along the right or bottom of a dialog box
56
+
57
+
1. Select one or more push buttons.
58
+
59
+
1. From the **Format** menu, choose **Arrange Buttons**, and then choose one of the following arrangements:
60
+
61
+
-`Right`: aligns push buttons along the right edge of the dialog box.
62
+
63
+
-`Bottom`: aligns push buttons along the bottom edge of the dialog box.
64
+
65
+
If you select a control other than a push button, its position isn't affected.
0 commit comments