Windows Develop Bookmark and Share   
 index > Windows Forms General > User Controls resizing at runtime
 

User Controls resizing at runtime

I have created several User Controls that I place in a Wizard form that is part of my project. Strangely, the User Controls do not keep their sizes when the form displays them. Winform Controls that place on the Wizard page are sized exactly as at runtime. Why is my control being resized?
Chepilo  Monday, April 16, 2007 8:29 PM

I just discovered that my inherited code problem belongs to Divelements, a UK company that apparently sold a copy of this Wizard control to my team long ago. I will work with them on a solution. Thank you, and I appologize for not checking this out sooner.

Chepilo  Tuesday, April 17, 2007 3:10 PM
Are you changing the Width, Height, Size or ClientSize properties in your user control code?
nobugz  Monday, April 16, 2007 9:36 PM
... also check the AutoSize, Anchor and Dock properties on your control after it has been droped on the form.

/johan/
http://idstam.com/en
johan idstam  Tuesday, April 17, 2007 4:35 AM

I just discovered that my inherited code problem belongs to Divelements, a UK company that apparently sold a copy of this Wizard control to my team long ago. I will work with them on a solution. Thank you, and I appologize for not checking this out sooner.

Chepilo  Tuesday, April 17, 2007 3:10 PM
Sounds like you're using a commercial layout/docking control. Seeing it changes sizes of controls would be the expected outcome. You can get support here...
nobugz  Tuesday, April 17, 2007 3:30 PM

You can use google to search for other answers

Custom Search

More Threads

• How to build release version of a win forms project?
• Highlighting row in DataGrid
• Issue with Custom Cursors
• NotifyIcon error : {"Balloon tip text must have a non-empty value."}
• Invoking User Control Event From Winforms
• httpContext not available in windows forms
• Can you secure Remote Desktop Connection so user cannot log in if workstation has someone logged in already
• Removing Listbox Scrollbar
• Converting song files in WMP 10
• backgroundWorker updating labels