簡易計算機二

執行畫面 :

程式碼:

Private Sub Command1_Click()
Text3.Text = Val(Text1) + Val(Text2.Text)
End Sub
 
Private Sub Command2_Click()
Text3.Text = Val(Text1) - Val(Text2.Text)
End Sub
 
Private Sub Command3_Click()
Text3.Text = Val(Text1) * Val(Text2.Text)
End Sub
 
Private Sub Command4_Click()
Text3.Text = Val(Text1) / Val(Text2.Text)
End Sub
 
Private Sub Command5_Click()
End
End Sub