Form can be sized/dragged to a larger size but cannot be sized/dragged back to a smaller size

StackOverflow https://stackoverflow.com/questions/8663763

  •  08-04-2021
  •  | 
  •  

Вопрос

I have this simple problem and I have tried searching for answers but came up empty handed.

See, I have this small program that has FormBorderStyle set to "Sizeable". My problem is that it can only be sized bigger but I can't drag it back to a smaller size (it simply won't allow me to).

Any help would be appreciated.

Это было полезно?

Решение

Apparently, the GroupBox with the Anchor property set was causing the problem.

Другие советы

Check your forms minimum width and height... likely these are set and preventing you from making it smaller. Set them to 0 and you should be good to go.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top