473,385 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Embed FolderBrowserDialog on form?


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
Nov 17 '07 #1
3 7047
Hi,

see here:

(Recommended)
[FolderBrowserDialog]
http://msdn2.microsoft.com/en-us/lib...serdialog.aspx

Or this:
[A very simple BrowseForFolder class]
http://www.codeproject.com/cs/miscct...eforfolder.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/project...ls%20v.1.0.zip
---------

Beste Grüsse / Best regards / Votre bien devoue

Kerem Gümrükcü
ke*****@arcor.de

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/

-----------------------
"This reply is provided as is, without warranty express or implied."
"Michael Howes" <mh****@xfortebio.comschrieb im Newsbeitrag
news:eb**************@TK2MSFTNGP02.phx.gbl...
>
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


Nov 17 '07 #2
>
(Recommended)
[FolderBrowserDialog]
http://msdn2.microsoft.com/en-us/lib...serdialog.aspx
thanks but what I need is something on a windows form, not a popup.

In my post I said...
>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.
I had already looked at FolderBrowserDialog

thanks
mike
Nov 19 '07 #3
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/project...ls%20v.1.0.zip
---------

Beste Grüsse / Best regards / Votre bien devoue

Kerem Gümrükcü
ke*****@arcor.de

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/

-----------------------
"This reply is provided as is, without warranty express or implied."
Nov 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anja | last post by:
I have installed the new Visual Studio 2003 and implemented the FolderBrowserDialog. Everything works fine, if I open the FolderBrowserDialog before opening a Database Connection. If I open...
9
by: hhh12347 | last post by:
FolderBrowserDialog crashes on my Windows 2000 computer. Here is a C# test program: using System; using System.Windows.Forms; public class TestForm : Form { FolderBrowserDialog...
5
by: Robin Tucker | last post by:
I've noticed that my program executable remains in the process list if at any stage my program has shown a FolderBrowserDialog. I am calling .Dipose on the dialog after use. This does not happen...
12
by: JohnR | last post by:
I have narrowed a problem down to a simple example. A form with two buttons. One EXIT and one FBD. The exit button does an "END" to end the application. The FBD button does a...
5
by: Scott M. Lyon | last post by:
My application (a VB.NET 2003 WinApp) currently has first an OpenFileDialog (asking for an input file to the process I'm working on), and then once the user selects that, it brings up a...
4
by: hotmit | last post by:
I'm trying to create a program that dynamicly saves and loads path of a FolderBrowserDialog , but I ran into a problem. Since FolderBrowserDialog is not a Control, therefore it doesn't have...
6
by: chrisknapp | last post by:
I'm learning VB and am making an application where I need a user to be able to choose which folder his files are located in. The folder path chosen will be stored as a string for later use in the...
2
by: Marcel Brekelmans | last post by:
Hi, I'm trying to display a MessageBox after a FolderBrowserDialog. I see that it gets displayed, but not activated. The form is not in front and when I have some other forms open the MessageBox...
4
by: Jerry West | last post by:
I'm trying to set the .RootFolder property of the FolderBrowserDialog object. Each time I try I get an error stating: "Object reference not set to an instance of an object." I have not opened...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.