Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Get folder path from user

  1. #1

    Thread Starter
    Fanatic Member staticbob's Avatar
    Join Date
    Jan 2005
    Location
    Manchestershire, UK Cabbage: I do
    Posts
    619

    Resolved [RESOLVED] [2005] Get folder path from user

    Guys,

    I need a function that will get a folder path from the user, allowing them to use the standard dialog box to browse. Problem is I would like to send in a starting path, so that when the browsedialog opens it defaults to a certain folder.

    Any help please ?

    Bob

    VB Code:
    1. Public Function GetFolderPath (byVal StartFolder as string) as string
    2.  
    3. Dim OpenFile As New FolderBrowserDialog
    4.             If OpenFile.ShowDialog() = DialogResult.OK Then
    5.                 return OpenFile.SelectedPath
    6.             End If
    7.  
    8. end function
    "I dislike 7 am. If 7 am were a person, I would punch 7 am in the biscuits." - Paul Ryan, DailyRamblings

  2. #2
    Frenzied Member
    Join Date
    Jul 2006
    Location
    MI
    Posts
    2,012

    Re: [2005] Get folder path from user

    Use .SelectedPath to set the start path.
    Last edited by nbrege; Aug 16th, 2006 at 12:13 PM.

  3. #3

    Thread Starter
    Fanatic Member staticbob's Avatar
    Join Date
    Jan 2005
    Location
    Manchestershire, UK Cabbage: I do
    Posts
    619

    Re: [2005] Get folder path from user

    Thanks nbrege

    Bob.
    "I dislike 7 am. If 7 am were a person, I would punch 7 am in the biscuits." - Paul Ryan, DailyRamblings

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