Visual Studio resizes my form without telling me help!

I launch visual studio 2008. Each time I go to the design presentation of one of my forms, the designer makes the form a little bigger. This happens in those forms where I have a minimum size. I want the shape to be minimal in size, so why does it resize to me?

+4
source share
3 answers

I had this problem with the specific form in which the user control was hosted. Each time I made a complete rebuild solution, this would make the form shorter. Found a simple solution: in the designer set the property of the minimum size of the form to the same as the size property. Now that the designer is randomly trying to resize, he will end up being the minimum size - this is the size you really want.

+5
source

Have you checked AutoSizeMode on the form? Form inherited from base form?

0
source

This solution may not be ideal, but I had problems with the designer who took the life, and it worked for me.

Subscribe to your forms Change the size of the event either in the constructor or in the constructor, and in the function call this.Size = this.MinimumSize.

This will affect the behavior of the designer, VS must first arrange some events for the designer or something like that.

0
source

All Articles