|
-
Oct 5th, 2007, 12:55 PM
#1
Thread Starter
Hyperactive Member
Re: [2005] Validating Path
Thank you. But the directory doesn't HAVE to exist at this point. The app will automatically create the directory later, if need be. I need to notify the user (preferably in the Text_Change event) that the path entered/changed is invalid.
If 'C:\MyFolder' is the original content of the textbox, the folder is valid.
If the user changes the text to 'C:\MyFQolder' that is valid also.
If the user changes the text to 'C:\My:Folder', that is not valid, and I want to tell them right then.
I hope that clarifies the problem.
Last edited by rjbudz; Oct 5th, 2007 at 02:16 PM.
-
Oct 5th, 2007, 08:04 PM
#2
Re: [2005] Validating Path
Could you perhaps use an Folder Browser Dialog instead, and when they select the folder from that, simply put the result into a textbox (making it a read only text box or whatever).
That way it will handle all the validation for you. It seems the easiest way than trying to validate a folder path in a text box that might not even exist.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|