Vertically (only) resizable windows form in C#

前端 未结 6 1530
时光取名叫无心
时光取名叫无心 2020-12-04 14:55

I have a situation where it would be beneficial to me to allow my windows form to be resized by the user, but only vertically. After some searching, it seems like there isn\

6条回答
  •  旧时难觅i
    2020-12-04 15:16

    Yes, it is possible. Just set your form.MinimumSize.Width = form.MaximumSize.Width = 100 (or whatever width you want).

提交回复
热议问题