• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • 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?
0
Emily78
Asked:
Emily78
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.
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

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