I sometimes prefer this dialog instead of the BrowseForFolder, because it
lets you see the files.
Just put whatever you want in the .FileName property, something like "Choose
your folder".
Make shure to set .CheckFileExists = False
Then, extract the pathname from the returned .FileName.
Dim pathname As String
With Me.OpenFileDialog1
.CheckFileExists = False
.CheckPathExists = True
.FileName = "Choose your folder"
If .ShowDialog() = DialogResult.OK Then
pathname = System.IO.Path.GetDirectoryName(.FileName)
End If
End With
Best Regards,
Alejandro Lapeyre
"Robert Liles" <rl****@midsouth.rr.com> escribió en el mensaje
news:1A*****************@fe2.columbus.rr.com...
I want a dialog like SaveFileDialog1 that returns a folder (aka path)
instead of a file name. I have a program that has a file with a file name
already assigned, but I want to allow the user to select the directory to
store it in. Is this possible with a supplied dialog or do I have to
create my own dialog?
Thank you,
Bobbo