Solved

Browsing for a folder without FolderBrowserDialog

Posted on 2004-09-09
6
337 Views
Last Modified: 2012-06-21
My Windows Forms application requires users to specify certain folders to store output files and I currently am using .Net's FolderBrowserDialog.  My problem is that I think this is a terrible interface for browsing folders, and I'm looking for a way to do that is more like the OpenFileDialog.  

My list of complaints includes (but is not limited to):
- You cannot resize the dialog box.
- You cannot create new folders, or delete folders
- There is not a link to common locations like My Documents, Desktop, or Favorites
- User's are already used to the OpenFile Dialog style of browsing, so the tree version seems clumsy

I know this can be done, because the VS.Net IDE utilizes a folder browser component that is *exactly* what I'd like.  To see what I'd like:

Open VS.Net
Click Tools --> Options
From the Environment folder, click on 'Projects and Solutions'
There is a 'Settings' Section, click on the Browse button
voila!  A folder browser that is just like the Open File Dialog.

Basicly, I'm looking for *any* help in tracking something like this down.  I would accept any of the following:
- Info about a third party control that has this same functionality and design that I could buy
- Code that you've used to create this functionality
- Information about what control I can inherit from to create my own control.
- confirmation that this bothers you too and that you are outraged that MS didn't include this control in the Common Components of VS.net
0
Comment
Question by:bkrier71
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 250 total points
ID: 12022253
bkrier71,

I am running the .Net Framework 1.1 and my FolderBrowser dialog DOES everything you say yours doesn't.

I can resize the dialog box.
I can create a new folder with the "Make New Folder' button.
I can delete a folder by right clicking on it and selecting "Delete"
The dialog opens with "Desktop", "My Documents", "My Computer" and "Recycle Bin" in it.

Regards,

Idle_Mind
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 12022266
The system folder browse dialog resides in shell32.dll, so either that file our your .Net framework is out of date.

Idle_Mind
0
 
LVL 4

Assisted Solution

by:Javert93
Javert93 earned 250 total points
ID: 12022311
You could use the Win32 GetOpenFileName API and specify a hook procedure in the OPENFILENAME structure. That way you can intercept the CDN_INCLUDEITEM notification message to determine if an item should be displayed or not. It wasn't really possible in VB 6, but .NET gives you the tools to do it.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with exporting to excel 4 44
Help with consolidating excel files using VB.net 2 35
ASP/VB email question 4 62
Looping through datagridview and dataset ? 6 33
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question