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 wr
A very simplistic approach would be to gather all the TextBox
controls in a sequence using the Enumerable.OfType LINQ method and then iterate through it in a For Each loop:
Dim textBoxes = Me.Controls.OfType(Of TextBox);
For Each t In textBoxes
If String.IsNullOrEmpty(t.Text) Then
MsgBox("...")
Exit For
End If
Next t