Solved

Browsing for a folder without FolderBrowserDialog

Posted on 2004-09-09
6
349 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 86

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 86

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

632 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