"MC D" <no****@earthtalk.com> wrote in message news:<10*************@corp.supernews.com>...
What's the best way to have a modal dialog that will only allow the
selection of a FOLDER, rather than a file? Is there a property of the
openFileDialog I'm missing, or is there another control altogether? I was
thinking of doing it from a treeView, but It seems like there ought to be a
control for this sort of thing!
-D
A twist on MC D's question.
Case one:
User is going to choose one file then OpenFileDialog works fine.
Case two:
User is going to choose more than one file, then OpenFileDialog works
fine, with a but:
I would like to save the user some clicking & scrolling, so if they
are going to choose all the files in a folder, then I would like to
give them the option of choosing the folder, but OpenFileDialog will
not work
Of course I could put 2 different buttons on my form
Button1 using FileOpen, if one file (or more than one but not all
files in folder)
Button2 using FolderBorwse in case user is going to choose all files
But the point is to simplify interface not to add more buttons...etc.
Is this possible?