Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Designer Keeps Resizing Controls On Build
 

Designer Keeps Resizing Controls On Build

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??

 

xr280xr  Friday, March 09, 2007 5:20 PM
I am seeing a similar behavior. Placing a user control on a form changes its size, almost like it's zoomed in.

bump.
hennessey  Thursday, May 31, 2007 12:38 PM

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

Marc.

Malacki  Friday, June 01, 2007 4:28 PM

That was it. Thank you.

Setting it to None fixed the issue.

hennessey  Friday, June 01, 2007 5:19 PM
My problem is at design time.
xr280xr  Saturday, June 02, 2007 1:27 AM
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?
Malacki  Saturday, June 02, 2007 7:08 AM
Unfortuneately no, the class is proprietary information Sad
xr280xr  Monday, June 04, 2007 7:55 PM
Gah, unfortunate. Sorry I can't be of more assistance Sad
Malacki  Monday, June 04, 2007 8:32 PM

You can use google to search for other answers

Custom Search

More Threads

• Need opinion on solution for creating Clickable labels for Smartphones
• serial port programing problem
• IPOD File Browser
• why my custom uitypeeditor does no change my generated property value
• Vertical Text
• Infragistics for windows forms
• How to get all mouse clicks in child controls
• Set collection item value through PropertyDescriptor?
• List type property, designer update problem
• Using ToolStripControlHost with DateTimePicker