D Delegat New member Local time Today, 05:54 Joined Oct 17, 2010 Messages 2 Oct 17, 2010 #1 How can I prohibit user from entering non-letters in a text field (one ( I think bad) approach is to define mask as ???????????????????????????????????????... ).
How can I prohibit user from entering non-letters in a text field (one ( I think bad) approach is to define mask as ???????????????????????????????????????... ).
DCrake Remembered Local time Today, 04:54 Joined Jun 8, 2005 Messages 8,626 Oct 17, 2010 #2 You can use the KeyPress or Keydown event of the control to test which key has been pressed.
P Poppa Smurf Registered User. Local time Today, 13:54 Joined Mar 21, 2008 Messages 448 Oct 17, 2010 #3 Use the Change Event of the text box to test the ASCII code of the character entered if it is between 65 to 95 then it is a letter. Now, is a ' e.g Tom's or a space permitted in your text box?
Use the Change Event of the text box to test the ASCII code of the character entered if it is between 65 to 95 then it is a letter. Now, is a ' e.g Tom's or a space permitted in your text box?