I have an application where the user has to fill in some textboxes and then click the next button, but if a textbox isn't filled in it crashes the program!
I would like to use this method:
Code SnippetIf TextBox1.Text = "" OrElse TextBox2.Text = "" OrElse TextBox3.Text = "" Then
MessageBox.Show("You must enter data in each textbox")
Else
build code
End If
This is where i run into my problem. There are several steps in my application.
the user has to choose between two options via radio buttons
then the user has to choose between two more options via more radio buttons.
I need the code to react to a situation like this:
if button1 and button 3 are chosen then check and see if these textboxes have text entered in them. If they do then continue to run the code.
or
if button 2 and button 4 are chosen then check and see if these other textboxes have text entered in them. If they do then continue to run the code.
I am really confused as to how to do this.
Any help would be greatly appericiated,
Thanks,
B-Man