0% found this document useful (0 votes)
65 views1 page

W.A.P. To Make A Simple Calculator: © BCA Notes All Rights Reserved

This Visual Basic code creates a simple calculator app with four buttons for addition, subtraction, multiplication and division that calculate the values in two text boxes and display the result in a third text box.

Uploaded by

Babu Parivendan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views1 page

W.A.P. To Make A Simple Calculator: © BCA Notes All Rights Reserved

This Visual Basic code creates a simple calculator app with four buttons for addition, subtraction, multiplication and division that calculate the values in two text boxes and display the result in a third text box.

Uploaded by

Babu Parivendan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

W.A.P.

To Make a Simple Calculator









Private Sub Command1_Click()
Text3.Text = Val (Text1.Text) + Val (Text2.Text)
End Sub

Private Sub Command2_Click()
Text3.Text = Text1.Text - Text2.Text
End Sub

Private Sub Command3_Click ()
Text3.Text = Text1.Text * Text2.Text
End Sub

Private Sub Command4_Click ()
Text3.Text = Text1.Text / Text2.Text
End Sub









Copyright BCA Notes All Rights Reserved.

You might also like