Resizing a Single Control In WinForms

后端 未结 5 944
Happy的楠姐
Happy的楠姐 2020-12-09 11:56

How might I design a UI in C#/WinForms which happens to contain several different control types such that only the ListView control gets resized if the user resizes the wind

5条回答
  •  轮回少年
    2020-12-09 12:23

    IF you put the ListView in one panel of a SplitContainer and put the remaining controls in the other panel you can restrict the growth of the second panel by setting the min and maxsize.

    If your ListView is docked Full then it'll take all the increase when the form is resized.

提交回复
热议问题