Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2008 folder browser dialog

Tags:

c++

c#

winforms

In Visual Studio 2008 there is a folder browser dialog that looks like this (very similar to file open dialog):

Dialog

Does anyone know how to invoke it from code?

like image 363
Alex Reitbort Avatar asked Aug 09 '09 09:08

Alex Reitbort


2 Answers

If you're using C#, this solution is for you. Source code provided here: http://www.lyquidity.com/devblog/?p=136 (.NET Win 7-style folder select dialog).

You don't need to use a whole library like VistaBridge, or a Windows API code pack, to get a nice Folder Dialogue, just two small source files. Gives you a nice folder dialogue like this:

like image 120
leetNightshade Avatar answered Oct 19 '22 00:10

leetNightshade


At the end I just used the VistaBridge library to open it.

like image 41
Alex Reitbort Avatar answered Oct 18 '22 22:10

Alex Reitbort