- Home
·
- Math/Dates
·
- Very basic calculator. Has add, subtract, multiply, & divide functions.
Very basic calculator. Has add, subtract, multiply, & divide functions.
Very basic calculator. Has add, subtract, multiply, & divide functions.
Rate Very basic calculator. Has add, subtract, multiply, & divide functions.
(1(1 Vote))
'If chkCheckBox1 is checked, then add the values of _
txtText1.text and txtText2.text together.
If chkCheckBox1.Value = 1 Then
lblLabel1.Caption = Val(txtText1.Text) + _
Val(txtText2.Text)
End If
'If chkCheckBox1 is checked, then subtract the values _
_ txtText1.text and txtText2.text from each other.
If chkCheckBox2.Value = 1 Then
lblLabel2.Caption = Val(txtText1.Text) - _
Val(txtText2.Text)
End If
'If chkCheckBox1 is checked, then multiply the values _
txtText1.text and txtText2.text together.
If chkCheckBox3.Value = 1 Then
lblLabel3.Caption = Val(txtText1.Text) * _
Val(txtText2.Text)
End If
'If chkCheckBox1 is checked, then divide the value of _
txtText1.text by the value of txtText2.text.
If chkCheckBox4.Value = 1 Then
lblLabel4.Caption = Val(txtText1.Text) / Val(txtText2.Text)
End If
End Sub
Very basic calculator. Has add, subtract, multiply, & divide functions. Comments
No comments yet — be the first to post one!
Post a Comment