Hi,
Use this code to check the blank textbox for a form
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Try
For Each cntrl As Control In Me.Controls()
If TypeOf cntrl Is TextBox Then
If CType(cntrl, TextBox).Text.Equals(String.Empty) Or (CType(cntrl, TextBox).Text = "") Then
MessageBox.Show("Please enter value in " & cntrl.Name.ToString())
End If
End If
Next
Catch ex As Exception
End Try
End Sub