简体   繁体   English

我运行时,VB6窗体不会调整大小

[英]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. 我必须对多年来未曾接触过的VB6.0项目进行一些修改,所以我的记忆有些老了。

I have a form and then I make the form bigger in the IDE. 我有一个表单,然后在IDE中将其放大。 When I run the program, the size increase does not show up although it looks perfectly fine in the IDE. 当我运行该程序时,虽然在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". 专门使用IDE的搜索来查找“ .Height”,“。Width”和“ .Move”。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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