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




Reply With Quote