Ive got a Form application in VB.NET.
I have many text boxes on one form (about 20). Is there anyway to check them all at once to see if they are empty instead of writing out a massive line of code to check each one individually such as
If txt1.text = "" Or txt2.text="" Then
msgbox("Please fill in all boxes")
That just seems like a long way around it?
See Question&Answers more detail:os