I'm not sure if this is the correct code to use for validating user input. Would someone correct me please. Thank you.
Code:
Private Sub txtNewName_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles textNewName.Validating If Not (txtNewName.Text Like "A-Za-z") Then e.Cancel = True
Leave a comment: