简体   繁体   中英

Folder Dialog Box in C#

I want to show "Folder Dialog Box" in C#/JavaScript, using which user can select their local system directories and not the server directories.

I have already tried with the below code, but it is retrieving me the server directories.

string[] objList = Directory.GetDirectories("D:");

Yep.

Drop a folder browser dialog onto your form and show it.

folderBrowserDialog1.ShowDialog();

Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM