The following code will work, using some text boxes and a button. You can use the code in other manners, such as putting it in TextBox change events. I used it with the button. I tested it.
Enjoy
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Cnt As Integer = 1
For Z = 0 To Me.Controls.Count - 1
If (TypeOf (Me.Controls(Z)) Is TextBox) Then
If Len(Me.Controls(Z).Text) = 0 Then
Cnt = 0
End If
If Cnt = 0 Then
Button1.Enabled = False
Else
Button1.Enabled = True
End If
End If
Next
End Sub
Edit
Deleted a line of code which was useless (had an apostrophe in front of it)
Edit2
In case you wish to look at only a select group of textboxes, use the following code. Note this code looks at only textbox2 and textbox4.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Cnt As Integer = 1
For Z = 0 To Me.Controls.Count - 1
If (TypeOf (Me.Controls(Z)) Is TextBox) Then
If (Me.Controls(Z)).Name.Contains(2) Or (Me.Controls(Z)).Name.Contains(4) Then
If Len(Me.Controls(Z).Text) = 0 Then
Cnt = 0
End If
If Cnt = 0 Then
Button1.Enabled = False
Else
Button1.Enabled = True
End If
End If
End If
Next
End Sub
End Class
EDIT3
I just noticed you said none of the answers worked. Either your vb.net or my vb.net is corrupt. The codes (both) work perfectly on my computer. I have 4 textboxes (named textbox1, textbox2, textbox3 and textbox4, and a button.
If you have named yopur textboxes by function, rather than by numbers, this will not work. Change your textbox names to their default names and my code works. If you can't change them back, you will have a hard time finding your answer.
TexMav