简体   繁体   中英

Resize form and controls VB 6.0

Good morning, the problem is that I am making an application where I have several forms with many objects. I work with a resolution of 1024 * 768, but when I change to a higher screen resolution, the controls are grouped on the left side of the screen. How can I control the size of the application's forms and controls so that they adapt when the screen resolution is changed from Windows?

Thank you in advance for your help

With VB6 there is no simple solution, unlike.Net.

You need to look at the Form_Resize event and in there resize/reposition controls as necessary. There is no automatic way, you pretty much have to work it all out manually.

If however this is a new development and you've just started, I'd recommend moving over to VB.Net as it has a host of features that make handling form resizing really easy to deal with.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM