Select either a file or folder from the same dialog in .NET

后端 未结 10 2098
别跟我提以往
别跟我提以往 2020-12-01 10:14

Is there an \"easy\" way to select either a file OR a folder from the same dialog?

In many apps I create I allow for both files or folders as input. Until now i alwa

10条回答
  •  生来不讨喜
    2020-12-01 11:08

    If you would like to display only specific file types, the following article (with source code in C#) can help you:

    http://www.codeproject.com/KB/shell/csdoesshell1.aspx?fid=14137&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=26

    It also explains the other options that are available for "customizing" the FolderBrowser dialog,

提交回复
热议问题