请帮我下以下编写代码 vb 有3个命令按钮,单击按钮1放大窗体,单击按钮2缩小窗体,单击按钮3关闭窗体
2个回答
展开全部
Private Sub Command1_Click()
Me.Width = Me.Width * 1.1
Me.Height = Me.Height * 1.1
End Sub
Private Sub Command2_Click()
Me.Width = Me.Width * 0.9
Me.Height = Me.Height * 0.9
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Me.Width = Me.Width * 1.1
Me.Height = Me.Height * 1.1
End Sub
Private Sub Command2_Click()
Me.Width = Me.Width * 0.9
Me.Height = Me.Height * 0.9
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询