Вы находитесь на странице: 1из 1

Object Icon Property Property Settings

Form Name
Caption Subtract Program
Name
subtract 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 Second Number:
Font MS Sans Serif/ Bold/14
Name lblProduct
Label Caption The Answer is:
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 txtProduct
MaxLength 10
Text Box Text 0
Font MS Sans Serif/ Bold/14
Enable False
Code
Dim Product As Integer

Private Sub cmdExit_Click()


End
End Sub

Private Sub cmdProduct_Click()


Product = txtInput1.Text - txtInput2.Text
txtInput1.Text = ""
txtInput2.Text = ""
txtProduct = Product
End Sub

Вам также может понравиться