简体   繁体   中英

VB6 Form will not resize when I run

I have to make some modifications to a VB6.0 project that I haven't touched in years so my memory is getting a little old.

I have a form and then I make the form bigger in the IDE. When I run the program, the size increase does not show up although it looks perfectly fine in the IDE.

What could be causing this?

If I change other stuff on the same form, the changes show up when I run. The only thing this is happening with is the size.

This form is a lot smaller that the main window so there is space to expand into.

Other forms in my project do not have this same behavior.

What else could I check for?

Look for something that sets the height and width in code at runtime . Use the IDE's search specifically to look for ".Height" and ".Width" and ".Move".

我认为一个更简单的解决方案可能是在form_load事件中设置表单的高度和宽度,因此它最初会变得所需。

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