WELLCOME

Visual Basic is a very easy and powerful programming language, a very simple coding of the software can be created with Visual Basic. I have my Blogger (http://www.vbcodebd.blogspot.com) in Visual basic 6.0 via kinds Program will discuss the code. Thanks All ..........

Monday, January 28, 2013

Calculator 1 (Visual Basic Tutorial - 6)


Program code:

Private Sub Command1_Click()
Dim a, b As Double
a = Val(Text1)
b = Val(Text2)
Text3 = a + b

End Sub

Private Sub Command2_Click()
Dim a, b As Double
a = Val(Text1)
b = Val(Text2)
Text3 = a * b

End Sub

Private Sub Command3_Click()
Dim a, b As Double
a = Val(Text1)
b = Val(Text2)
Text3 = a - b

End Sub

Private Sub Command4_Click()
Dim a, b As Double
a = Val(Text1)
b = Val(Text2)
Text3 = a / b

End Sub

Private Sub Command6_Click()
Text1 = ""
Text2 = ""
Text3 = ""

End Sub

Private Sub Command7_Click()
End

End Sub
.......................................................................................................
 Project Download 

No comments:

Post a Comment