0

Hi,

Using .NET, is there any way to create a dialog which allows the user to choose multiple directories by ticking them. The purpose is to scan the chosen directories for certain files.

Thanks

6
Contributors
6
Replies
7
Views
10 Years
Discussion Span
Last Post by alc6379
0

Hey!

I would like to pick up on that since I am trying to do something similar: Make it possible to select multiple folders and on "OK" I parse those folders for a certain file. .net (C#) doesn't seem to allow that out of the box.

So if that's possible, can somebody point out how?

Thanks a lot in advance!
dek

0

It really depends on how you want to do it. If you just wanted to get a list of a single directory's directories, you could populate a CheckedListBox and then only process the items in the CheckedListBox that are checked. If you wanted to get more in-depth than that, you would want to look into a TreeView that allows checked nodes.

Plenty of code samples are available on the internet for populating a TreeView based on a directory structure:

http://www.google.com/search?hl=en&hs=6IJ&q=treeview+directory+structure+C%23&btnG=Search

see if that helps.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.