Personally I've never liked the "FolderBrowserDialog" both in vb6 & in .Net, luckily since switching to .Net and the introduction of Windows Vista there's an api that will display a "OpenFolderDialog" which operates very similar to the OpenFileDialog and SaveFileDialog and is much more suited, in my opinion, than the FolderBrowserDialog ever could be:
I've uploaded the class that makes that happen, but using it is as simple as:
vb Code:
Using ofd As New OpenFolderDialog With {.DefaultFolder = Environment.GetFolderPath(Environment.SpecialFolder.Desktop), .InitialFolder = .DefaultFolder} If ofd.ShowDialog(Me) <> DialogResult.Cancel Then 'Use ofd.Folder for the path to the selected folder End If End Using




Reply With Quote
