scaleheight,scaleheight怎么读
请教VB中一个scaleheight和height的问题
按你说的这种
窗体和picture1的 属性 ScaleMode 都是 Twip
picture1 的BordeStyle 是 1
差就差了 边框
如果 picture1 的BordeStyle 是 0,就是无边框
picture1 的 scaleheight 是 4005
scaleheight 的数值 一定是 Screen.TwipsPerPixelY 的整数倍
Twip 模式主要针对打印
如果是 屏幕处理 一般将 窗体和picture1的 属性 ScaleMode 设为 3 Pixel
就是屏幕上的点
如果 没有边框 picture1的 height 和 scaleheight 就一样了

VB窗体的ScaleHeight属性和Height属性的区别是??
me.Height获得的是窗体(包括边框)的高度,
me.ScaleHeight ,获得的是窗体( 不包括边框 )的高度
区别仅此而已
Height是指窗体的实际高度。
ScaleHeight 指的时绘图比例,
vb中scalewidth 与scaleheight怎么理解?
scalewidth 与scaleheight是去除了窗体边框后的宽度和高度
你可以将窗体的BORDERSTYLE属性设置为NONE,可以看到scalewidth 与scaleheight和窗体的实际width和height是相同的了,呵呵
VB对象的Width Height和ScaleWidth,ScaleHeight属性有何区别?
VB对象的Width,Height和ScaleWidth,ScaleHeight属性区别为:对象不同、影响不同、基点不同。
一、对象不同
1、Width,Height属性:Width,Height属性是控件外部的宽度和高度。
2、ScaleWidth,ScaleHeight属性:ScaleWidth,ScaleHeight属性是控件内部的宽度和高度。
二、影响不同
1、Width,Height属性:Width,Height属性受到控件所在的父容器控件的ScaleMode模式影响。
2、ScaleWidth,ScaleHeight属性:ScaleWidth,ScaleHeight属性受到控件本身的ScaleMode模式影响。
三、基点不同
1、Width,Height属性:Width,Height属性的坐标系以窗体的左上角为基点。
2、ScaleWidth,ScaleHeight属性:ScaleWidth,ScaleHeight属性的坐标系以控件左上角的左上角为基点。