I am using VB.net to create a simple winform. I have the option to save the data I input on that form. I am trying to prevent the user not to save the data if textbox10 is empty. I tried the while loop but I go into an infinite loop. The code is below. The if statement gives the error but allows the user to save.
Any way how to do this??Thanks for the replies
VB.NET:
While Len(Me.techniciansTextBox.Text) = 0
MessageBox.Show("Please Enter a Technician To continue")
End While
Any way how to do this??Thanks for the replies