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

后端 未结 10 2046
别跟我提以往
别跟我提以往 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:17

    AFAIK, there is nothing in the .NET framework that does this out of the box.

    The .NET file dialogs derive from CommonDialog:

    Inherited classes are required to implement RunDialog by invoking ShowDialog to create a specific common dialog box. Inherited classes can override HookProc to implement specific dialog box hook functionality.

提交回复
热议问题