Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do I can set the resolution of my forms in vb.net so when it will be run on smaller or bigger unit the forms and all its content will be adjusted to fit perfectly just like when I run it on my unit?
Posted
Comments
[no name] 4-Jul-15 8:27am    
You don't. You use the layout controls and the anchor properties of the controls to adjust your layout to fit the resolution.
Ralf Meier 6-Jul-15 1:19am    
I won't say "you don't" - but you should know, that it is a lot of work.
You have to calculate the size, the location and the fontsize depending on the actual form-size refering to the developed form-size. But ... this is only the first time to be done, when the form is opened.
I have done this severall times for usercontrols, which I have developed and which should also be (intelligent) resizable - it is the same ...

1 solution

As @Wes_Aday said you should use layout control like panel, tablelayoutpanel, splitcontainer etc and set the dock property to 'fill'. Remember, no matter what the user screen size is you should design your application with a mininum form size (eg. 1024x700)
 
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