473,725 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OpenFileDialog1 and multi selection of folders

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.

Nov 21 '05 #1
4 8484
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*********@ho tmail.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.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.

Nov 21 '05 #2
Noa
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*********@ho tmail.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.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.


Nov 21 '05 #3
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
FolderBrowserDi alog controls when displayed.

Hope this helps
Jay
"Noa" <st*********@ho tmail.com> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.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*********@ho tmail.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.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.
>

Nov 21 '05 #4
Noa
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 FolderBrowserDi alog controls when displayed.

Hope this helps
Jay
"Noa" <st*********@ho tmail.com> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.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*********@ho tmail.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.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.
>


Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1471
by: | last post by:
Hi With extended multi-select, is it possible to know the last selection made by the user? Thanks Regards
0
1227
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 it supports a variety of types of multiple selection. It can support column, row, table, or ad-hoc cell multiple selection. My question is, does anyone know how to handle multiple selection in terms of the GetSelected() method of an...
2
5038
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 a way to do this? Thanks, Alpha
12
1871
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 this table contain partially pre-configured records. The records serve as "master" data that will later be inserted into a data table. The master data is set up by an adminsitrator. The administrator indicates for each record the none, one or many...
1
2829
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 on this 200 multi selection ? Thanks!
0
1506
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 on this 200 multi selection ? Thanks!
1
4165
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. 2 of the Multi-Select Boxes acquire their data from other tables as Lookup's. All functions for the filters operate properly pulling the data needed. One of my options with the data is to send it to a Report that can be printed. The request...
3
3265
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 together the IDs of Clients from a multi-select listbox in an unbound text field, txtCriteria, on a form that is used to pick different reports. It appears that I now have so many clients that I’ve reached the 255 character limit in the txtCriteria...
11
5601
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 can enter their search criteria eg. surname, reg num, etc. in the text boxes. The multi select list box allows the user to select multiple counties which they have the option of including in the search. The user should be able to select or omit the...
0
8888
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9401
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9176
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9113
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.