tags:

views:

5246

answers:

1

I am writing a quick and dirty application that reads all the files from a given directory. I'm currently using the OpenFileDialog to choose a directory and just culling off the file name that it provides. It seems like there should be a way to just choose directories though, but in a quick browsing of MSDN I didn't find it.

If you have a way in winforms or more preferably in WPF I'm all ears.

+16  A: 

You'll want to use a FolderBrowserDialog.

Kibbee