I have a button and two textboxes on my form.. what would the code be to cancel the rest of the events for the button if either one of the boxes is left blank?
I know to use something like the following:
But I just don't know what code to use to cancel (or stop) the rest of the events from happening.. i tried using "e.cancel" but I think that only works to stop a form from closing or something.
I know to use something like the following:
Visual Basic:
If textbox1.text = "" Then
'cancel code
End If
If textbox2.text = "" Then
'cancel code
End If