문제

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

도움이 되었습니까?

해결책

Set SelectedPath to a path on the network.

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top