Reputation: 3959
Is there anyway to set the folderBrowserDialog to start in a set folder on a network drive? I know it takes Environment.SpecialFolders but I'm not seeing what I need in there...
Upvotes: 0
Views: 1127
Reputation: 5836
If you mean, the FolderBrowserDialog should start with a specific folder already selected, then set the SelectedPath property before calling ShowDialog.
If you mean rooted to a specific folder, the FolderBrowserDialog can only be rooted to one of the SpecialFolders values.
Alternately, use a control like FolderView which allows rooting to a random folder. Further, its a control, so you can place it in your own form.
DISCLAIMER: I work for LogicNP Software, the developers of FolderView.
Upvotes: 0
Reputation: 887777
Set SelectedPath
to a path on the network.
I don't think it's possible to a folder picker rooted to a network path.
Upvotes: 1