How to: Align a Control to the Edges of Forms at Design Time
Effect on your control
Docks to the bottom of the form.
Fills all remaining space in the form.
Docks to the left side of the form.
Does not dock anywhere, and it appears at the location specified by its Location.
Docks to the right side of the form.
Docks to the top of the form.
These values can also be set in code. For more information, see How to: Align a Control to the Edges of Forms.
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 Working with Settings.
To set the Dock property for your control at design time
In the Windows Forms Designer, select your control.
In the Properties window, click the drop-down box next to the Dock property.
A graphical interface representing the six possible Dock settings is displayed.
Choose the appropriate setting.
Your control will now dock in the manner specified by the setting.