validate textbox value?

sebasjuh

Member
Joined
Dec 6, 2007
Messages
13
Programming Experience
Beginner
Hello,

I have made a textbox in my Visual Basic 2005 project where people can type a new folder name and there is a button Start that will create this folder.

But is it possible to have a check on the textbox field when user's press the Start button to see if the folder name they entered is right to our standard?

Because I want only folders be made who matched the standard:
00000 - foldername

So my question is it possible to have a check when pressing Start to check if the given folder name matches my standard?
00000 - foldername (5 numbers - foldername)
And the trick question is can someone explain me how to make something like that if it's possible?
 
Anything is possible!

No really, it would be simple, just validate the entered text against your standard before creating the directory. If it matches your standard, create the folder, if it doesn't, warn the user that it doesn't match your standard or just do nothing.
 
Back
Top