Windows Develop Bookmark and Share   
 index > Windows Forms Designer > resizeable
 

resizeable

This is probably a bit of an obvious question, but how do you create forms that are resizeable. (Not just the actual form but so that the controls on the form change size in accordance with the form changing size.)

Any help would be appreciated

edd.armitage  Sunday, November 06, 2005 1:19 PM
Hello.

See discussion
"Handling differents screen resolution"
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=83025

Good luck
Gorm Braarvig
Gorm Braarvig  Sunday, November 06, 2005 7:30 PM

If I understand your scenario correctly, you are not talking about running under different screen resolutions. E.g. you want to make sure that buttons on your form resize as the Form resizes.

If that is correct, then take a look at the new TableLayoutPanel (TLP). As an example try and add a TLP to the form, Dock Fill the TLP and add a button to the TLP. Set the buttons Anchor to Left, Right. Now when you resize the form (at either runtime or design time), the button will resize as well.

Hope that helps.

Martin
Development Lead, WinForms team

Martin Thorsen - MSFT  Tuesday, November 15, 2005 1:31 AM

You can use google to search for other answers

Custom Search

More Threads

• Connection string design-time editor
• ParentControlDesigner - InvalidCastException
• Can Toolstrip inherited to be changed?
• Open Form
• prob while doing project in VS2005 using C#.
• Customize controls in VB.NET
• 'InitializeComponent' is generated by the designer :)
• Best way to substitute customized datagridview for standard datagridview??
• Can't access instance.Name of UserControl in IDE
• bring up child control's designer in a UserControl?