ListBox AutoSizes by item height

后端 未结 2 506
臣服心动
臣服心动 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.

    0 讨论(0)
  • 2021-01-18 20:24

    Set the IntegralHeight property of the listbox to false

    0 讨论(0)
提交回复
热议问题