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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
.NET Desktop feedback