|
-
Aug 16th, 2006, 11:51 AM
#1
Thread Starter
Fanatic Member
[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:
Public Function GetFolderPath (byVal StartFolder as string) as string
Dim OpenFile As New FolderBrowserDialog
If OpenFile.ShowDialog() = DialogResult.OK Then
return OpenFile.SelectedPath
End If
end function
"I dislike 7 am. If 7 am were a person, I would punch 7 am in the biscuits." - Paul Ryan, DailyRamblings
-
Aug 16th, 2006, 12:09 PM
#2
Frenzied Member
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.
-
Aug 17th, 2006, 04:08 AM
#3
Thread Starter
Fanatic Member
Re: [2005] Get folder path from user
"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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|