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. 4 8430
Dan,
Have you tried the sample that was shown?
Have you tried the OpenFileDialog.Multiselect option?
If you set OpenFileDialog.Multiselect to True, you can then use
OpenFileDialog.FileNames to get the list of files.
Be certain to read the Remarks on the OpenFileDialog.Multiselect property. http://msdn.microsoft.com/library/de...electtopic.asp
Hope this helps
Jay
"Noa" <st*********@hotmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com... 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.
Jay B. Harlow [MVP - Outlook] wrote: Dan, Have you tried the sample that was shown?
Have you tried the OpenFileDialog.Multiselect option?
If you set OpenFileDialog.Multiselect to True, you can then use OpenFileDialog.FileNames to get the list of files.
Be certain to read the Remarks on the OpenFileDialog.Multiselect
property. http://msdn.microsoft.com/library/de...electtopic.asp Hope this helps Jay
"Noa" <st*********@hotmail.com> wrote in message news:11*********************@f14g2000cwb.googlegro ups.com... 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.
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
"Noa" <st*********@hotmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com... 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.
Jay B. Harlow [MVP - Outlook] wrote: Dan, Have you tried the sample that was shown?
Have you tried the OpenFileDialog.Multiselect option?
If you set OpenFileDialog.Multiselect to True, you can then use OpenFileDialog.FileNames to get the list of files.
Be certain to read the Remarks on the OpenFileDialog.Multiselect property. http://msdn.microsoft.com/library/de...electtopic.asp Hope this helps Jay
"Noa" <st*********@hotmail.com> wrote in message news:11*********************@f14g2000cwb.googlegro ups.com... > 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. >
Thx, Jay.
Jay B. Harlow [MVP - Outlook] wrote: 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
"Noa" <st*********@hotmail.com> wrote in message news:11**********************@c13g2000cwb.googlegr oups.com... 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.
Jay B. Harlow [MVP - Outlook] wrote: Dan, Have you tried the sample that was shown?
Have you tried the OpenFileDialog.Multiselect option?
If you set OpenFileDialog.Multiselect to True, you can then use OpenFileDialog.FileNames to get the list of files.
Be certain to read the Remarks on the OpenFileDialog.Multiselect property.
http://msdn.microsoft.com/library/de...electtopic.asp Hope this helps Jay
"Noa" <st*********@hotmail.com> wrote in message news:11*********************@f14g2000cwb.googlegro ups.com... > 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. > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: |
last post by:
Hi
With extended multi-select, is it possible to know the last selection made
by the user?
Thanks
Regards
|
by: Pete Davis |
last post by:
Sorry to have to post this here, but none of the accessibility newsgroups
seem to be active.
I've got a custom control that I'm adding accessibility support to. The
control is a grid control and...
|
by: Alpha |
last post by:
How I can disable multi-selection on a datagrid? User now can select
multi-rows on the grid by holding down control key. I don't see such
property for the grid as for the list control. Is there...
|
by: dbuchanan |
last post by:
I am designing a table to contain a field to stores a value that must
indicate none, one, or many choices. The form will have a group box
with checkboxes (multi-choice)
You see the records in...
|
by: KotBegemot |
last post by:
I have a ListView with multi select
I have 2 events: SelectedIndexChanged and ItemSelectionChanged
If user selects 200 items, these events will be called for 200 times
How can I get only 1 event...
|
by: felix.karpel |
last post by:
I have a ListView with multi select
I have 2 events: SelectedIndexChanged and ItemSelectionChanged
If user selects 200 items, these events will be called for 200 times
How can I get only 1 event...
|
by: freetime |
last post by:
Greetings,
This is my first post so I will try to be brief and accurate.
I have a report that uses 9 user selectable filters (Dates, Y/N's as Combo Boxes and 4 Multi-Select List Boxes. ...
|
by: 6afraidbecause789 |
last post by:
If able, can someone please help make a Where clause that strings
together IDs in a multi-select listbox AND includes a date range.
I wasn’t thinking when I used the code below that strings...
|
by: woodey2002 |
last post by:
This problem is driving me crazy.
Hello there,
i am trying to create a search form for records in my access database. The search form will contain text boxes and a multi select list box. The user...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |