M
M
magdest2019-02-06 21:32:08
C++ / C#
magdest, 2019-02-06 21:32:08

How to select multiple folders and multiple files at the same time in one dialog box (OpenFileDialog) in VisualStudio C++ or C#, and get their names?

I can select several FOLDERS:
5c5b271128290876248517.jpeg
Result:
5c5b272f97756220216011.jpeg
I can select several FILES:
5c5b27432fc7c669242108.jpeg
RESULT:
5c5b275a305b0785150805.jpeg
NEED THE SAME ONLY SIMULTANEOUSLY FOR FOLDERS AND FILES IN ONE DIALOGUE WINDOW.
HERE USED OpenFileDialog.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita Yudin, 2019-02-06
@magdest

By standard methods, you can select either folders or files. To choose both, you need to look for projects that allow you to do this. For example this one:
https://github.com/scottwis/OpenFileOrFolderDialog
Or this one:
https://www.codeproject.com/Articles/28015/SelectD...

M
magdest, 2019-02-06
@magdest

THANK YOU! The second link is a really working example but for older versions. You will have to hone it under VisualStudio2017 Windows10 x64. (alas, this will not work), but I still mark you as a solution. ALTHOUGH ANOTHER OPTION IS NECESSARY.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question