Stop bound controls when moving when changing form in designer

Is there a way to resize the form in the designer without moving any docked controls? I am using winforms in Visual Studio 2010.

+4
source share
2 answers

You must know when to cheat. Open the Designer.cs form file and edit the assignment of the this.ClientSize property. This changes the size of the form, but does not affect the location of the controls docked to the right or bottom.

+12
source

You can try this ... save all the controls by default (i.e. top, left), since you are in design mode and then bind them to the code in the form_load / activate event.

+1
source

Source: https://habr.com/ru/post/1498423/


All Articles