How to resize controls based on screen resolution vb.net

I am building a vb.net application using visual studio 2003,  I need the controls to resize based on the screen resolution.  How can i do this?  I know how to get the resolution, but is there an easy way to scale the controls to fit?  Right now the application looks perfect when resolution is set to 1024 by 768, but it looks jumbled when set to 800 by 600.  I am using anchors and docking to but keep them in the correct positions.
tentavariousAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Wayne Taylor (webtubbs)Commented:
Hi tentavarious,

Anchors and Docking are the suggested methods for ensuring control/form proportions are kept.

Regards,

Wayne
0
tentavariousAuthor Commented:
I am using anchors and docking but my buttons, labels and user controls dont shrink to fit when I change the resolution to a smaller size.
0
Wayne Taylor (webtubbs)Commented:
tentavarious

You should build your forms based on the lowest possible resolution, and avoid scaling down.

Wayne
0
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

tentavariousAuthor Commented:
Well if the user increases the resolution there would be way too much space.  Anchoring and docking can only do so much, I need to actually change the width/height of the controls, which I can do, but I was wondering if there was .net class that would simplify the process.
0
Wayne Taylor (webtubbs)Commented:
No such class I'm afraid. The only other way to resize is to handle the forms Resize event, and resize your controls in there.

Wayne
0
Fernando SotoRetiredCommented:
Hi tentavarious;

What you want is called resolution independence and Microsoft only supports that from Vista and whatever comes after it.

In order to get this on MS operating systems before Vista you will need to resize all controls on the form based on the current resolution settings before displaying the form. Or you can buy a product that will do this for you automatically.

The following link has such a product for sale
.Net Forms Resize By Soft Group
http://www.soft-group.it/net/index.php?c=3

There may be others you can see if there is by using a internet search on "resolution independence".

Fernando
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
Fernando SotoRetiredCommented:
Hi tentavarious;

BTW, I have not used the product from my last post. There web site does allow you to download and try it out.

Fernando
0
tentavariousAuthor Commented:
Ok, I think i can come up with something to resize the controls upon the form loading, if it doesnt work, i will give that product a try.
0
Fernando SotoRetiredCommented:
Be aware that controls that display text, the font size will also need to be re-sized by using another font size.
0
tentavariousAuthor Commented:
yep also i need to deal with a spacing issue between controls not sure how to handle that yet.
0
Fernando SotoRetiredCommented:
That is correct.
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.