I use TableLayoutPanel for all my elements in the form. I use Dock Fill to automatically create TextBox and ListBox. TextBox fits perfectly in the TableLayoutPanel cell, but not in the ListBox. It automatically sorts by element height.
How to remove this gap between the bottom of the ListBox and the bottom of the form? I know that I can set the height of the ListBox to a specific value (for example, the height of an item in a ListBox is 16, 16 * 10 items = 160, 160 will match correctly), but are there any other solutions?
I am using C #.
source share