Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub TextBox1_Validated(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Validated
ErrorProvider1.SetError(TextBox1, "")
End Sub
Private Sub TextBox1_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles TextBox1.Validating
If TextBox1.Text <> "Fred" Then
e.Cancel = True
ErrorProvider1.SetError(TextBox1, "Invalid Data")
Else
'not really necessary (I think), but better safe than sorry
e.Cancel = False
ErrorProvider1.SetError(TextBox1, "")
End If
End Sub