ListBox AutoSizes by item height

后端 未结 2 530
臣服心动
臣服心动 2021-01-18 19:59

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

2条回答
  •  轮回少年
    2021-01-18 20:21

    Set the ListBox's property IntegralHeight = false; so that it won't resize the control by the item height variable.

提交回复
热议问题