xr280xr

Hi,

I have a couple different user controls that the designer chooses to resize when I build my project. On one control every time I build, every textbox and combobox on the control will get wider. On the other control, every time I rebuild the designer insists on setting the width of the entire control to a smaller size than I keep resetting it to. I want it to be wide enough to fully show the other user controls placed on it, but it keeps sizing itself smaller than the width of those user controls. Auto size is set to false. Occasionally it will shift all of the user controls placed on it way farther down in the Y direction too. Why's it doing this

 



Re: Windows Forms Designer Designer Keeps Resizing Controls On Build

hennessey

I am seeing a similar behavior. Placing a user control on a form changes its size, almost like it's zoomed in.

bump.




Re: Windows Forms Designer Designer Keeps Resizing Controls On Build

Malacki

Check the AutoScaleMode property on your controls and form. That can affect what you see at runtime.

Marc.





Re: Windows Forms Designer Designer Keeps Resizing Controls On Build

hennessey

That was it. Thank you.

Setting it to None fixed the issue.





Re: Windows Forms Designer Designer Keeps Resizing Controls On Build

xr280xr

My problem is at design time.



Re: Windows Forms Designer Designer Keeps Resizing Controls On Build

Malacki

Hmm, I haven't been able to reproduce your problem Sad Do you have a small project you can send me that exhibits the problem



Re: Windows Forms Designer Designer Keeps Resizing Controls On Build

xr280xr

Unfortuneately no, the class is proprietary information Sad



Re: Windows Forms Designer Designer Keeps Resizing Controls On Build

Malacki

Gah, unfortunate. Sorry I can't be of more assistance Sad