I am trying to make sure that user uses at least 6 characters as a password in my program.
I know how to set maximum size by using MaxLength, but how I do this for the minimum length?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Although competent_tech gives you my recommended approach, a primitive solution would be the following:
Drop a label on your form and give it an ErrorText.
Use the following code for your textbox KeyDown event: