OpenFileDialog1 and multi selection of folders

  • Thread starter Thread starter Noa
  • Start date Start date
N

Noa

Hi,
Is there a way to use OpenFileDialog1 in order to multi-select folders?
I saw in msdn site a sample of multi-file-selections. I need to select
multiple folders and to apply an algorithm on them.
Any suggestions?

Thx in advance,
Dan.
 
Jay,
The sample shows how multiple files can be selected at once. I have
tried it and it only works for files. I'm looking for multi-selection
of Folders. It seams that it is different. Perhaps only slightly
different and some flags should be initialized first. I don't know.
When I run the project with the sample and select some folders, one of
them (maybe the first one) is opened when Open buttun is clicked but I
don't get to the Sub OpenFileDialog1_FileOk. This is implemented only
when files are selected and Open button is clicked.
I need to select a couple of folders and apply (or "Open"). Then I need
to apply some code on each selected folder.

Any other ideas?
Thx,
Dan.
 
Dan,
Doh! I missed the "Folders" part in your question, as opening multiple
folders does not make a lot of sense in most cases. I would expect
OpenFileDialog does not support it, after all it is Open *File* Dialog...
Any other ideas?
Design your own dialog that adds folders to a ListBox, ListView, or possible
even a TreeView that allows multiple selections... (Unfortunately TreeView
does not allow multiple selections that I can see).

If possible I would attempt to make it look like the OpenFileDialog or the
FolderBrowserDialog controls when displayed.

Hope this helps
Jay
 
Thx, Jay.

Dan,
Doh! I missed the "Folders" part in your question, as opening multiple
folders does not make a lot of sense in most cases. I would expect
OpenFileDialog does not support it, after all it is Open *File* Dialog...
Design your own dialog that adds folders to a ListBox, ListView, or possible
even a TreeView that allows multiple selections... (Unfortunately TreeView
does not allow multiple selections that I can see).

If possible I would attempt to make it look like the OpenFileDialog or the
FolderBrowserDialog controls when displayed.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top