Frage

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...

War es hilfreich?

Lösung

Set SelectedPath to a path on the network.

I don't think it's possible to a folder picker rooted to a network path.

Andere Tipps

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top