How to: Align Multiple Controls on Windows Forms
To standardize the layout of the user interface (UI) of your Windows-based application, you can position groups of controls with a single command.
To align multiple controls on a form
In Visual Studio, open the form that contains the controls you want to position in the Windows Forms Designer.
Select the controls you want to align. The first control you select is the primary control to which the others will be aligned.
On the Format menu, select Align, and then select one of the seven choices available.
See also
- Windows Forms Controls
- How to: Add Controls to Windows Forms
- Controls to Use on Windows Forms
- Windows Forms Controls by Function
- Walkthrough: Arranging Controls on Windows Forms Using Snaplines
- Walkthrough: Arranging Controls on Windows Forms Using a TableLayoutPanel
- Walkthrough: Arranging Controls on Windows Forms Using a FlowLayoutPanel
- How to: Reassign Existing Controls to a Different Parent
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET Desktop feedback