VB 窗体大小属性如何改?

我想要运行后产生这种效果: 窗体的宽=400像素 窗体的高=550像素 在属性栏,我已经把窗体的ScaleMode改成 3 pixel了,后面的Width=400,Height=550 明显得不到我要的效果啊. 为什么?怎么办?

Private
Sub
Form_Load()
Width
=
400
*
Screen.TwipsPerPixelX
Height
=
550
*
Screen.TwipsPerPixelY
End
Sub
因为
Screen.TwipsPerPixelX

Screen.TwipsPerPixelY
都等于
15
,所以可
简写

Private
Sub
Form_Load()
Width
=
400
*
15
Height
=
550
*
15
End
Sub
窗体上的控件的
Width

Height
属性的单位由窗体的
ScaleMode属性决定,但窗体的
Width

Height
属性的单位只能是twip
,不能改
温馨提示:答案为网友推荐,仅供参考
相似回答
大家正在搜