Click here to Skip to main content
15,868,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello all,

I am currently working on a Visual Basic application and I currently have a form created. I was wondering and been looking for a way so when the user re-sizes the form the controls will change in size depending on the user making it bigger or smaller.

Also another thing I am looking into is when the form starts up depending on the users specific screen size have the controls adjust to a certain size so they can easily see them and use the controls.

Thank you.
Posted
Comments
CHill60 3-Sep-15 11:40am    
Is this VB6 or VB.NET?

1 solution

Don't. It's possible but it rarely ends well.
The problem is that while it's easy to grow and shrink the controls themselves (in the .NET version of VB that can be automatic using the Dock and Align properties) that doesn't change any font size, because that is set by the system to be "comfortable" for the user - and he can adjust that to cope with any deficiencies in his vision. So what you tend to get is buttons so small you can't get the text on them, or a massive button, with tiny text in the middle.

Unless your app is designed from scratch to allow for different resolutions it never looks very good at all. Have a look at the way Visual studio does it: a central work area and "tool boxes" around the edges. As VS gets bigger and smaller, the tools stay the same size, but the work area / toolboxes expand and contract. Unless your app is similar, it's not a good idea!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900