Windows Develop Bookmark and Share   
 index > Windows Forms General > Forms size
 

Forms size

How do I control the size of all of my forms? I would like to set them so they are all the same size. How do I acomplish this?

thank you

nhaas  Wednesday, October 25, 2006 6:17 PM

you can programmatically set the size of the form by modifying the width/height property or the Size property:

this.Size = new Size(width, height);

but you may have to also make sure that the controls on the form scale/adjust themselves accordingly, to do this I am unsure but know there are a few amount of topics about this on these forums, so do a search and see what comes up :-)

You could also just not allow the user to resize the Form if you like? To do this, set the formborderstyle to FixedSingle

Does this help?

ahmedilyas  Wednesday, October 25, 2006 6:41 PM

you can programmatically set the size of the form by modifying the width/height property or the Size property:

this.Size = new Size(width, height);

but you may have to also make sure that the controls on the form scale/adjust themselves accordingly, to do this I am unsure but know there are a few amount of topics about this on these forums, so do a search and see what comes up :-)

You could also just not allow the user to resize the Form if you like? To do this, set the formborderstyle to FixedSingle

Does this help?

ahmedilyas  Wednesday, October 25, 2006 6:41 PM

Hi

Since you want to have a uniform size across use the concept of Visual Inheritance, where you inherit from a base form.

Thanks,

Ajeeth Kumar  Wednesday, October 25, 2006 6:55 PM

You can use google to search for other answers

Custom Search

More Threads

• Rtf Input
• public string (Forms + Class)
• How can i do Multiple selections using either control[Ctrl] key pressing or mouseright button clicking...
• using OWC(Office Web components) charts in windows app
• Printing an Image with Color Profiles
• Multiplication in Textbox
• DataGridViewRows problem
• open outlook adress book
• how do i add a % formula
• help with validating grids