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 b18151f
Browse filesBrowse the repository at this point in the historyBrowse files
The **Dialog Editor** tab appears in the [Toolbox window](/visualstudio/ide/reference/toolbox) when you're working in the **Dialog** editor. To add controls to your new dialog box, drag controls from the **Toolbox** to the dialog box you're creating (for more information, see [Adding a Control to a Dialog Box](adding-a-control-to-a-dialog-box.md)). You can then move the controls around or change their size and shape.
10
+
The **Dialog Editor** tab appears in the [Toolbox window](/visualstudio/ide/reference/toolbox) when you're working in the **Dialog** editor. To add controls to your new dialog box, drag controls from the **Toolbox** to the dialog box you're creating. You can then move the controls around or change their size and shape.
11
11
12
12
The standard controls available in the **Toolbox** are:
13
13
@@ -75,13 +75,13 @@ For information on adding resources to managed projects, see [Resources in Deskt
75
75
76
76
1. Ensure that the dialog box tabbed window is the current document in the editor frame. If a dialog isn't the current document, you won't see the **Dialog Editor Tab** in the **Toolbox**.
77
77
78
-
1. On the [Dialog Editor Tab](../windows/dialog-editor-tab-toolbox.md) of the [Toolbox Window](/visualstudio/ide/reference/toolbox), select the control you want, then:
78
+
1. On the **Dialog Editor**tab of the [Toolbox Window](/visualstudio/ide/reference/toolbox), select the control you want, then:
79
79
80
-
-Click the dialog box at the location where you want to place the control. The control appears where you've clicked. For information, see [Adding Multiple Controls](../windows/adding-multiple-controls.md).
80
+
-Select the dialog box at the location where you want to place the control. The control appears where you've selected.
81
81
82
82
\- or -
83
83
84
-
- Drag and drop the control from the **Toolbox** window to the location on your dialog box. For more information, see [Sizing a Control While You Add It](../windows/sizing-a-control-while-you-add-it.md).
84
+
- Drag and drop the control from the **Toolbox** window to the location on your dialog box.
85
85
86
86
\- or -
87
87
@@ -95,6 +95,22 @@ For information on adding resources to managed projects, see [Resources in Deskt
95
95
96
96
1. Press **Esc** to stop placing controls.
97
97
98
+
## To size a control while you add it
99
+
100
+
1. Select a control in the [Toolbox Window](/visualstudio/ide/reference/toolbox).
101
+
102
+
1. Place your cursor (which appears as cross hairs) where you want the upper-left corner of the new control to be on your dialog box.
103
+
104
+
1. Select and hold down the mouse button to anchor the upper-left corner of your control on the dialog box, then drag the cursor to the right and down until the control is the size you want.
105
+
106
+
> [!NOTE]
107
+
> You can actually anchor any of the four corners of the control you're drawing. This procedure used the upper-left corner as an example.
108
+
109
+
1. Release the mouse button. The control settles onto the dialog box in the size you specified.
110
+
111
+
> [!TIP]
112
+
> You can resize the control after dropping it onto the dialog box by moving the sizing handles on the border of the control. For more information, see [Sizing Individual Controls](../windows/sizing-individual-controls.md).
113
+
98
114
## Requirements
99
115
100
116
Win32
@@ -103,10 +119,7 @@ Win32
103
119
104
120
[Controls in Dialog Boxes](../windows/controls-in-dialog-boxes.md)<br/>
105
121
[Adding Event Handlers for Dialog Box Controls](../windows/adding-event-handlers-for-dialog-box-controls.md)<br/>
106
-
[Dialog Box Controls and Variable Types](../ide/dialog-box-controls-and-variable-types.md)
107
-
108
-
## See Also
109
-
122
+
[Dialog Box Controls and Variable Types](../ide/dialog-box-controls-and-variable-types.md)<br/>
0 commit comments