In TableLayoutPanel if Dock = Fill and AutoSize = true then last column/row occupy all remaining space

winforms

Solution

You should add `TableLayoutPanel` as tbl1 with two rows and two columns. Then set `dock = fill autoscroll = true` and set width for 1st row to `autosize` and for the second `absolute 0.00 F`.

Do the same for column 1 and 2. Now add actual `TableLayoutPanel` in 1st rows 1st column.

Problem

In TableLayoutPanel if we set AutoSize = true and Dock = fill then last column/row will occupy all remaining space. How to set it to required height (row) and width (column)?

Original source