
304 Chapter 7 • Creating Windows Forms
Table 7.7 Dock Styles for Controls
Member
Name Description
Bottom The control’s bottom edge is docked to the bottom of its
containing control.
Fill All the control’s edges are docked to all edges of its containing
control and sized appropriately.
Left The control’s left edge is docked to the left edge of its
containing control.
None The control is not docked.
Right The control’s right edge is docked to the right edge of its
containing control.
Top The control’s top edge is docked to the top of its containing
control.
Layering Objects on Forms
When your form contains a number of controls, you may need to manipulate ...