Hi,
Use below Code.
Private Function ValidateControls() As ArrayList
Dim arrControls As New ArrayList
For Each Cntrl As Control In Me.Controls
If TypeOf Cntrl Is TextBox Then
If Cntrl.Text = "" Then
arrControls.Add(Cntrl)
End If
End If
Next
Return arrControls
End Function
Let me know for any query. Hope this is helpful for you.
Thanks.!