How to: Span Rows and Columns in a TableLayoutPanel Control
2 minutes to read
In this article
Controls in a
TableLayoutPanel control can span adjacent rows and columns.
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 span columns and rows
TableLayoutPanel control from the Toolbox onto your form.
Button control from the Toolbox into the upper-left cell of the TableLayoutPanel control.
Button control's ColumnSpan property to 2. Note that the Button control spans the first and second columns.
Button control's RowSpan property to 2. Note that the Button control spans the first and second rows.
Button control's ColumnSpan property to 1. Note that the Button control moves into the first column and spans the first and second rows. See Also
TableLayoutPanel Control (Windows Forms)