|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
How to: Reassign Existing Controls to a Different Parent
You can assign controls that exist on your form to a new container control.
The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see.
To reassign existing controls to a different parent
Drag threecontrols from the Toolbox onto the form.
Position them near to each other, but leave them unaligned.
In the Toolbox, click thecontrol icon.
Do not drag the icon onto the form.
Move the mouse pointer close to the three Button controls.
The pointer changes to a crosshair with the FlowLayoutPanel control icon attached.
Click and hold the mouse button.
Drag the mouse pointer to draw the outline of the FlowLayoutPanel control.
Draw the outline around the three Button controls.
Release the mouse button.
The three Button controls are now inserted into the FlowLayoutPanel control.