tama吧 关注:183贴子:533
  • 0回复贴,共1
Private Sub Command1_Click()
Label1.Caption = "+"
Text3.Text = Val(Text1.Text) + Val(Text2.Text)
End Sub Private Sub Command2_Click()
Label1.Caption = "-"
Text3.Text = Val(Text1.Text) - Val(Text2.Text)
End Sub
Private Sub Command3_Click()
Label1.Caption = "*"
Text3.Text = Val(Text1.Text) * Val(Text2.Text)
End Sub
Private Sub Command4_Click()
Label1.Caption = "/"
Text3.Text = Val(Text1.Text) / Val(Text2.Text)
End Sub
Private Sub Command5_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End Sub


1楼2012-11-13 16:23回复