先在Form_Load中记录控件的相对位置及大小比例,然后在Form_Resize中按比例设置控件的位置及大小即可:Dim ll As Single, tt As Single, ww As Single, hh As SinglePrivate Sub Form_Load()
ll = Text1.Left / Me.ScaleWidth
tt = Text1.Top / Me.ScaleHeight
ww = Text1.Width / Me.ScaleWidth
hh = Text1.Height / Me.ScaleHeightEnd SubPrivate Sub ...
先在Form_Load中记录控件的相对位置及大小比例,然后在Form_Resize中按比例设置控件的位置及大小即可:Dim ll As Single, tt As Single, ww As Single, hh As SinglePrivate Sub Form_Load()
ll = Text1.Left / Me.Scal...