Calculator in Visual Basic 6.0 by DDuck

Tags:
6.0 Basic Beginners Beginning Calculators Codes DDuck DDuckProduction Simple Vb VB6.0 Visual
dDuckProduction
  • Affiliate Submitter:
    dDuckProduc...
  • International International
  • Comments: 0
  • Views: 500
  • Added: 06-Apr-08

Hello and welcome to my Calculator tutorial! To do this program you'll need Visual Basic 6.0

The code is:

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

Thx for watching!

  1. Categories: How To
Comments on

Calculator in Visual Basic 6.0 by DDuck

2 Comments | Add Comment 2 Comments | Add Comment