User:Krazziebone31/sandbox

SIMPLE CALCULATOR PROGRAM

ALL YOU JUST NEED WAS 2 TEXT BOX 1 LABEL 4 COMMANDS

SOURCE CODE

Private Sub command1_Click label1.Caption = Val(text1.Text) + Val(text2.Text) End Sub

Private Sub command2_Click label1.Caption = Val(text1.Text) * Val(text2.Text) End Sub

Private Sub command3_Click label1.Caption = Val(text1.Text) - Val(text2.Text) End Sub

Private Sub command4_Click label1.Caption = Val(text1.Text) / Val(text2.Text) End Sub

Private Sub Text1_Click text1.Text = "" End Sub

Private Sub text2_Click text2.Text = "" End Sub

THE OUTPUT