All I want to do is to check for textboxes with string value if yes then the message box will appear saying (use number).
For Each t In Me.Controls
If TextBox1.Text = (String) Then
MsgBox("Please Use Number")
Exit Sub
Exit For
End If
Next
Thanks in advance
From your error-message i assume that you want to validate that the user entered a numerical value. Then you can either use
Int32.TryParseorDouble.TryParseor simply enumerate all chars and check if they are digits:With
Int32.TryParse:(assuming also that you want to validate all TextBoxes on your form)