• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

Character restraints in Visual Basic

I am trying to create a form that only accepts passwords that are between a certain length.  The textbox allows you to put in a max length in the properties.  How do you put in the minimum length acceptable?
1 Solution
Mike TomlinsonMiddle School Assistant TeacherCommented:
Usually you have an "OK" button right?  Set the Enabled() Property of the Button to False.  Then in the TextChanged() Event of the TextBox, change the Enabled() Property of the Button accordingly...

You could also change the BackColor of the TextBox from Red to Green when the password has met the minimum Length.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now