Home >Backend Development >C#.Net Tutorial >Details of C# select directory dialog box FolderBrowserDialog

Details of C# select directory dialog box FolderBrowserDialog

黄舟
黄舟Original
2017-03-02 11:56:362402browse

Show() This window opens an interface similar to the resource manager.

FolderBrowserDialog folderDlg = new FolderBrowserDialog();
folderDlg.ShowDialog();
MessageBox.Show(folderDlg.SelectedPath);

As shown in the picture, you can also create a new folder. good.

The above is the details of the C# selection directory dialog box FolderBrowserDialog. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn