新建From1(窗体),新建Command1(按钮CommandButton),代码:
Private Sub Form_Load()
'窗体高度等于屏幕高度的六分之一
Form1.Height = Screen.Height / 6
'窗体宽度等于屏幕宽度的六分之一
Form1.Width = Screen.Width / 6
End Sub
Private Sub Form_Resize()
Command1.Move 0, 0, ScaleWidth, ScaleHeight
End Sub
Private Sub Command1_Click()
End
End Sub