I'm trying to create a form that has a text box that only accepts text entries (i.e. no numeric entries). I can't figure it out....this is what I have so far...
Private Sub textName_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles textName.TextChanged
If textName.Text.Trim <> "" Then
Try
employeeName = Text
Catch ex As Exception
MessageBox.Show("Input Must Be Text Only", _
"Input Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
textName.Focus()
textName.SelectAll()
End Try
End If
End Sub
End Class