How to prevent users from typing special characters in textbox [duplicate]
问题 This question already has answers here : How do I make a textbox that only accepts numbers? (35 answers) Verifying that a string contains only letters in C# (10 answers) Closed 4 years ago . I need to validate a password entry on a textbox, I have a few demands to fullfill in order to allow the user profile to be created and one of them is to refuse registration if the password contains anything else different than numbers and the alphabet letters the system needs to deny the entry,