Is there an OpenFileOrFolderDialog object in .NET?

前端 未结 6 958
清酒与你
清酒与你 2021-01-12 08:36

Is it possible to use the OpenFileDialog class select a file OR folder? It appears only to allow the selection of a file, if you select a folder and then choose open it wil

6条回答
  •  迷失自我
    2021-01-12 09:04

    Yes, you can use OpenFileDialog to select a folder. Here is an article in CodeProject that demonstrated a way to do it (http://www.codeproject.com/KB/dialog/OpenFileOrFolderDialog.aspx).

提交回复
热议问题