Directory Picker ???

  • Thread starter Thread starter HyperX
  • Start date Start date
H

HyperX

Is there any way that I can use "OpenFileDialog" as "Directory Picker"
rather than file picker or should I write my own damn code in .net???

HyperX.
 
If your using VS 2003 there's a built in FolderBrowser control. If you
aren't you can wait until you upgrade or unfortunately, write it yourself.

HTH,

Bill
 
I have exactly the same question, and one more additional-
- suppose one wanted to extend OpenFileDialog to be
DirectoryPicker or in some other way (for instance adding
a label with hints for the user, or whatever), is there
a "good" way to do this?
 
hey-- there it is, right in Toolbox.Components..
Thanks!!

What about the other question, suppose one wants to
modify an existing dialog, to add functionality. For
example, the File.Open in Microsoft Word looks like my
FileOpen dialog, except on steroids-- it has a dropdown
button, etc. How does Word get a dialog that "looks"
almost the same but has custom functionality?

Thanks in advance!!
 
woodBeeProgrammer said:
I have exactly the same question, and one more additional-
- suppose one wanted to extend OpenFileDialog to be
DirectoryPicker or in some other way (for instance adding
a label with hints for the user, or whatever), is there
a "good" way to do this?

This involves templates and hooking into the OpenFileDialog and is not
trivial. A great free COM control as available at www.mvps.org/ccrp
(click on downloads and then locate Extended File Dialogs OCX/DLL.

Works great.
 
You can perform tasks like that by inheriting the class and overriding the
methods you want to add custom functionality to, or just by adding methods
and taking care of the display.

Fabio
 
Back
Top