|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: Align and Stretch a Control in a TableLayoutPanel 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 Visual Studio Settings.
To align and stretch a control
Drag a TableLayoutPanel control from the Toolbox onto your form.
Set the value of the Button control's Dock property to None. The Button control returns to its original size and moves to the upper-left corner of the cell. The Windows Forms Designer has set the Anchor property to Top, Left.