954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Select multiple directories dialog

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

Amara
Newbie Poster
2 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Yes

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

Did I break daniweb etiquette or something?

Amara
Newbie Poster
2 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Why you said that?

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

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

the_dekan
Newbie Poster
1 post since Mar 2009
Reputation Points: 10
Solved Threads: 0
 
Yes

lol

skatamatic
Posting Shark
959 posts since Nov 2007
Reputation Points: 403
Solved Threads: 129
 

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.

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You