Results 1 to 33 of 33

Thread: [RESOLVED] [2005] Validating Path

Hybrid View

  1. #1

    Thread Starter
    Hyperactive Member rjbudz's Avatar
    Join Date
    Jul 2005
    Location
    San Diego
    Posts
    262

    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.

  2. #2
    Frenzied Member stimbo's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,739

    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.
    Stim

    Free VB.NET Book Chapter
    Visual Basic 2005 Cookbook Sample Chapter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width