I use TableLayoutPanel for all my elements in a form. I use Dock Fill to autosize a TextBox and a ListBox. TextBox fits perfectly in a cell of the TableLayoutPanel but not a
Set the ListBox's property IntegralHeight = false; so that it won't resize the control by the item height variable.
IntegralHeight = false;
Set the IntegralHeight property of the listbox to false