Is there an OpenFileOrFolderDialog object in .NET?

前端 未结 6 957
清酒与你
清酒与你 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:13

    No: the OpenFileDialog is just for opening files. Anyway there is a FolderBrowserDialog you can use for that.

    [Edit] Answered too fast: the Edit from the questioner was afterwards.

提交回复
热议问题