Selecting a directory dialog

R

Ray Price

Is there anyway I can use the common dialogs
SaveFileDialog for example, to select a directory? Seems
it just opens the directory when I select it, and I don't
see any flags to turn that functionality off.

Thanks

Ray
 
H

Herfried K. Wagner

Hello,

Ray Price said:
Is there anyway I can use the common dialogs
SaveFileDialog for example, to select a directory? Seems
it just opens the directory when I select it, and I don't
see any flags to turn that functionality off.
..NET 1.1
"FolderBrowserDialog Class" (System.Windows.Forms.FolderBrowserDialog)
http://msdn.microsoft.com/library/e...WindowsFormsFolderBrowserDialogClassTopic.asp

Note that there is a bug in the .NET Framework 1.1 that causes a really
bad error when using a path which is longer than ~128 characters. This
occurs on Unicode systems only. Use the P/Invoke solutions mentioned
below instead.

..NET 1.0
P/Invoke solutions:

http://www.codeproject.com/cs/miscctrl/folderbrowser.asp
http://support.microsoft.com/?kbid=306285
http://www.gotdotnet.com/team/vb/FolderBrowser.exe
http://groups.google.com/groups?selm=q0JKzDbmCHA.2144@cpmsftngxa09

Regards,
Herfried K. Wagner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top