How allow window to be resized?

I have a C# .NET desktop program that is about 4 years old.  When I designed it, I made it fixed size (860 x 720)... now, I would like to allow the user to maximize it to fit the size of their screen, keeping the aspect ratio and all controls positioned exactly where they are now in relation to each other.

How do I do this?  And what is the "standard" maximum  window size?
rmmarshAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
How do I do this?
As long as MaximumSize is not set, you should be able to resize the form. For the "aspect ratio" part, you'll most likely need to set a combination of docking and anchors, with the possibility of adding some Panels or other containers.

And what is the "standard" maximum  window size?
I don't think there really is a "standard" maximum anymore these days. With so many choices in screen size and resolution, who's to say what the standard is  : )
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rmmarshAuthor Commented:
Thank you...
0
mkobrinCommented:
There are a couple of things to bear in mind here:

Have you set the maximum size for the window? If so then set those values to 0.

Have you set the border style to fixed? If so then set ot tp sizeable.

I agree with the above comment regarding the statndard maximum window size, and the aspect ratio

To keep your items that must move with any of the margins, anchor them with those margins, bearing in mind that if you anchor to all the margins, the item will grow and shrink as the window is resized.

If you use the anchor option be sure to set the minimum size of the window so that your items do not move on top of one another when the window is made smaller.

Regards

Mike
0
Mike TomlinsonMiddle School Assistant TeacherCommented:
After setting proper anchor/dock properties on your controls, you can keep the form itself at that aspect ratio:
http://www.vcskicks.com/maintain-aspect-ratio.php
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.