Embed FolderBrowserDialog on form?

  • Thread starter Thread starter Michael Howes
  • Start date Start date
M

Michael Howes

I need a folder selection tree on my windows form. I don't see a way to
add the FolderBrowswerDialog as a Control and add it to my form's
controls collection.

Is there a way to accomplish this or do I need to write my own? It would
be nice to get the folder icons like they are on each individual system.

thanks
mike
 
Hi,

see here:

(Recommended)
[FolderBrowserDialog]
http://msdn2.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog.aspx

Or this:
[A very simple BrowseForFolder class]
http://www.codeproject.com/cs/miscctrl/browseforfolder.asp

Or you can do it the native way using win32 api:
[SHBrowseForFolder]
http://msdn2.microsoft.com/en-us/library/aa923860.aspx

Or if you like it the hardcore way: You can write
your own. *g* (not recommended)


Regards

Kerem
(Sign my guestbook if my post helped you!
Its new and i need entries...thanks!)
http://entwicklung.junetz.de/guestbook

---------
New Open Source Tools from me:
Calculate MD5 or SHA1 Hash for Files!
KHash Tools 1.0 Englisch:
http://download.chip.eu/de/KHash-Tools-1.0_1317168.html
http://entwicklung.junetz.de/projects/opensource/khashtools/khashtools v.1.0.zip
---------

Beste Grüsse / Best regards / Votre bien devoue

Kerem Gümrükcü
(e-mail address removed)

Best Quote: "Ain't nobody a badass with a double dose
of rock salt...", Kill Bill Vol.2

Latest Open-Source Projects: http://entwicklung.junetz.de
Sign my guestbook: http://entwicklung.junetz.de/guestbook/
 
Hi Michael,

capture its creation by hooking your apps WndProc
and embbed it into your windows forms app, with
something like SetParent and modify its psoition by
using SetWindowPos. Do some modificaions on it
if you like by modifying its window bits with
Set/GetWindowLong API calls.

Or write your own browser for the FileSystem. This
is no match,...just a little Shell API and some recursive
code,...

Regards

Kerem

--
---------
New Open Source Tools from me:
Calculate MD5 or SHA1 Hash for Files!
KHash Tools 1.0 Englisch:
http://download.chip.eu/de/KHash-Tools-1.0_1317168.html
http://entwicklung.junetz.de/projects/opensource/khashtools/khashtools v.1.0.zip
---------

Beste Grüsse / Best regards / Votre bien devoue

Kerem Gümrükcü
(e-mail address removed)

Best Quote: "Ain't nobody a badass with a double dose
of rock salt...", Kill Bill Vol.2

Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
Sign my guestbook: http://entwicklung.junetz.de/guestbook/
 
Back
Top