write VB code for multiplying and dividing two given numbers - ( use textbox 1 as num1, textbox2 as num2 and textbox3 as num3
Answers
Answered by
1
Answer:
Details here given via VBA code
Explanation:
Private Sub textbox1_EditValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles textbox1.EditValueChanged
If textbox1.Text <> "" Then
textbox3.text=cint(textbox1.text)*1
End If
End Sub
Private Sub textbox2_EditValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles textbox2.EditValueChanged
If textbox2.Text <> "" and textbox2.Text <> "" Then
textbox3.text=cint(textbox1.text)*cint(textbox2.text)
End If
End Sub
Similar questions