Results 1 to 33 of 33

Thread: [RESOLVED] [2005] Validating Path

Hybrid View

  1. #1
    Fanatic Member bgmacaw's Avatar
    Join Date
    Mar 2007
    Location
    Atlanta, GA USA
    Posts
    524

    Re: [2005] Validating Path

    Here's one to try to see if it will work for you

    Code:
    If IO.Path.IsPathRooted(newPath) Then

  2. #2
    Addicted Member
    Join Date
    May 2006
    Location
    Manchester, England
    Posts
    255

    Re: [2005] Validating Path

    I'd be tempted to follow the spec - but as a "free of charge enhancement", put a button next to the TextBox to allow you to open the folder browser dialog, and once the user has chosen their folder, populate the TextBox with the result of the browser dialog .... and also use Stimbo's suggestion at post #6.
    At home - VB.NET 2005/2008 Express, Visual Web Developer 2005 Express
    At work - VS 2008 Standard (VB)
    .NET 2.0/3.5


    Visual Studio Express Learning Centre | How do I videos | MSDN VB Express Forum | MSDN VB Developer Centre

  3. #3

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

    Re: [2005] Validating Path

    Quote Originally Posted by bgmacaw
    Code:
    If IO.Path.IsPathRooted(newPath) Then
    Same situation. The common problem for all the methods cited is that the colon is recognized as a valid character for the path.

    And it IS valid. But only as the second character.

    And thanks, penguin. She's more likely to go for that than the other one!

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