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