Here is the code:
If txtUserLength.Text = "" Then
MsgBox("Please enter a Length")
ElseIf txtUserWidth.Text = "" Then
MsgBox("Please enter a Width")
ElseIf txtUserLength.Text = "" And txtUserWidth.Text = "" Then
MsgBox("Please enter both Width and Length")
End If
After each message box, I want the program to go to a subroutine which clears all of the labels and text boxes. The subroutine is called:
Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
Thanks.