7,763
社区成员
发帖
与我相关
我的任务
分享
Text1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
'ScaleMode 为像素
Dim X As Double
Dim Y As Double
X = Me.Width / Screen.TwipsPerPixelX - Me.ScaleWidth
Y = Me.Height / Screen.TwipsPerPixelY - Me.ScaleHeight
Text1.Move 0, 0
Me.Width = (Text1.Width + X) * Screen.TwipsPerPixelX
Me.Height = (Text1.Height + Y) * Screen.TwipsPerPixelY