FolderBrowserDialog.RootFolder not using special folder?

E

engwar

Is it possible to set the root folder of FolderBrowsserDialog to any
folder I want. ie c:\temp or something?

Haven't yet found a way to do this.

Thanks for any responses.
 
M

Morten Wennevik [C# MVP]

Is it possible to set the root folder of FolderBrowsserDialog to any
folder I want. ie c:\temp or something?

Haven't yet found a way to do this.

Thanks for any responses.

No, only folders defined as SpecialFolder. I'm not sure you can change a SpecialFolder to point to any folder either, and in any case it will probably be better to just create your own customized FolderBrowserDialog.
 
Joined
Nov 21, 2009
Messages
79
Reaction score
0
The built-in FolderBrowserDialog only allows you to specify one of the SpecialFolders as the root folder. If you want to specify a different root folder (like a file system folder), use a custom control like FolderView
 

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