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

Visal Basic

This document describes a Visual Basic code that multiplies the values entered in four text boxes and displays the product in a fifth text box. It defines variables to store the product value and empty the text boxes when the "Multiply" button is clicked. The code includes labels and text boxes to get the four input numbers and display the output, along with buttons to perform the calculation and exit the form.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views1 page

Visal Basic

This document describes a Visual Basic code that multiplies the values entered in four text boxes and displays the product in a fifth text box. It defines variables to store the product value and empty the text boxes when the "Multiply" button is clicked. The code includes labels and text boxes to get the four input numbers and display the output, along with buttons to perform the calculation and exit the form.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Code

Dim Product As Integer

Private Sub cmdExit_Click()


End
End Sub

Private Sub cmdProduct_Click()


Product = txtInput1.Text * txtInput2.Text * txtInput3.Text * txtInput4.Text
txtInput1.Text = ""
txtInput2.Text = ""
txtInput3.Text = ""
txtInput4.Text = ""
txtProduct = Product
End Sub
Object Icon Property Property Settings

Form Name
Caption
Name
Multiply button Caption
Font MS Sans Serif/ Bold/14
Name
Exit button Caption
Font MS Sans Serif/ Bold/14
Name lblproduct
Label Caption Enter First Number:
Font MS Sans Serif/ Bold/14
Name lblproduct2
Label Caption Enter 2nd Number:
Font MS Sans Serif/ Bold/14
Name lblproduct3
Label Caption Enter 3rd Number:
Font MS Sans Serif/ Bold/14
Name lblproduct4
Label Caption Enter 4th Number:
Font MS Sans Serif/ Bold/14
Name txtInput1
Text Box Text (empty)
Font MS Sans Serif/ Bold/14
TabIndex 0
Name txtInput2
Text Box Text (empty)
Font MS Sans Serif/ Bold/14
TabIndex 1
Name txtInput3
Text Box Text (empty)
Font MS Sans Serif/ Bold/14
TabIndex 2
Name txtInput4
Text Box Text (empty)
Font MS Sans Serif/ Bold/14
TabIndex 3
Name txtProduct
MaxLength 25
Text Box Enable False
Text 0
Font MS Sans Serif/ Bold/14

You might also like