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

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

    this will allow you to select folders using OpenFileDialog

            openFileDialog1.CheckFileExists = false;
            openFileDialog1.ValidateNames = false;
    

提交回复
热议问题