I have one windows form file that each time I open it in Visual Studio it increases the size of the controls within the designer file. If I save the form, close it in the editor, and open it again, then the controls are all a little larger than before. I can see that the size properties on the controls are all increasing within the designer file.
Can anyone explain to me how to fix this behavior?
To elaborate on my comment, when the designer loads/saves your form, it is going to call the getters/setters on the public properties of your Form and the Form’s controls.
This means that if you’ve overridden a property of the form, and accessing/setting said property has a side effect of resizing a control, that size adjustment will be reflected in the designer. Then when you save the form, that new size is persisted to the designer-generated code. Each time you reopen the form, this adjustment would occur.
This would also apply to event handlers for properties that are being set within the designer-generated code.