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
Solved

Browsing for a folder without FolderBrowserDialog

Posted on 2004-09-09
6
331 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
  • 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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
VB.NET return row from SQL to DataSet and get column values ? 3 97
Close form "before" open 3 48
Generate Numbers in JQuery file 11 66
FInd Image Control Gridview 3 21
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

860 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