标签云

微信群

扫码加入我们

WeChat QR Code

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 will navigate to that folder.If the OpenFileDialog can not be used for this is there another object I should be using?EDIT: The scenario is that I have a tool that can upload one...many files or folders.I need to be able to provide a dialog like the OpenFileDialog that allows a user to select a file, folder, or a combination of.I know about the FolderBrowseDialog and that is not the answer in this case.


Take a look at the Ookii Dialogs libraries which have an implementation of a folder browser dialog for Windows Forms and WPF respectively.

2019年03月23日41分31秒

I think you are right.Hoping someone here can prove us both wrong.

2019年03月23日41分31秒

Yes in my experience you are right. Shame though.

2019年03月23日41分31秒

From the question: "I know about the FolderBrowseDialog and tha is not the answer in this case."

2019年03月23日41分31秒