if screen.TwipsPerPixelX=800 and screen.TwipsPerPixely=600 then
你的调整语句
elseif screen.TwipsPerPixelX=1024 and screen.TwipsPerPixely=768 then
你的调整语句
end if
Private Sub Form_Load()
Me.Width =0.8 * VB.Screen.Width
Me.Height =0.8 * VB.Screen.Height
End Sub
根据这个,也就是无论你多大的分辨率都是显示80%。同理,你就把相关的代码加进来就好了
Private Sub Form_Load()
Me.Width =0.8 * VB.Screen.Width
Me.Height =0.8 * VB.Screen.Height
text1.left=...
text1.width=...
End Sub