MS Explorer folder View

MS Explorer folder View

Post by Rafa » Wed, 23 Jul 2003 20:13:53


How can I use the Windows Explorer Folder control in a
Visual Basic application?

I need a dialog to allow the user selecting a folder or
any number of files in a folder. I made my own dialog
using the DriveList, DirList and FileList VB controls but
now I need to show also the shell and network shared
folders. I've tried also with SHBrowseForFolder which can
show files as well as folders and shell folders but it
does not allow selecting multiple files.

The ideal dialog would be the one with a left pane with
the control used in the Windows Explorer to show a tree
with the folder structure and, on the right, a pane with a
list of files in the selected directory on the left pane.
I have not idea on how to indentify and instantiate such
control in Visual Basic. Any idea?


MS Explorer folder View

Post by Gary Chans » Thu, 24 Jul 2003 04:01:14

Is there some reason for not using GetOpenFileName?


-Software Consultant (Embedded systems and Real Time Controls)

-Abolish public schools


MS Explorer folder View

Post by Rafa » Thu, 24 Jul 2003 16:01:21

with a

Yes. The dialog shown with GetOpenFileName only lets me
select a file. I need a solution that allows the selection
of multiple files or folders. This is why I was thinking
on the TreeView used in MS Explorer to browse in folders,
furthermore, within this treeview it is possible to
create, rename or delete files and folders. I have shown
many programs that use it. For example: Nero, Irfan
View,... There are also many Explorer-like controls for
sale: FileView, FolderView, ShellView (ssware),...
By the way, I don't want to buy a control that is already
available in Windows. I am trying to build my own control
customizing the SHBrowseForFolder dialog but the results I
get are not exactly what I need.

MS Explorer folder View

Post by Timo Kunz » Thu, 24 Jul 2003 16:58:00

> Yes. The dialog shown with GetOpenFileName only lets me
I don't think you'll get multi selection working with SHBrowseForFolder.
Maybe my FREEWARE ExplorerTreeView is an option for you. It supports
everything, SHBrowseForFolder supports. Multi selection can be achieved by
using the CheckBoxes property.
Send me a mail if you have questions.

Downloads: (the control) (a demo; this package
includes the ocx)

MS Explorer folder View

Post by Rafa » Thu, 24 Jul 2003 21:09:56

results I
It supports
can be achieved by
this package

Thanks very much, but I have just solved my problem.

I have found an example that does what I want in Visual
C++ using the IShellFolder, IShellBrowser and IShellView
interfaces ( ).
And now I'm in the right way to build my own set of


MS Explorer folder View

Post by Daniel Mil » Thu, 07 Aug 2003 01:34:57

"Timo Kunze" < XXXX@XXXXX.COM > wrote in

BTW, Timo, the above link for the OCX gave a "object not found" error. I
tried searching around your homepage for the file, but I don't read German
so I couldn't pursue any further... just FYI.

MS Explorer folder View

Post by Timo Kunz » Thu, 07 Aug 2003 07:15:03

Well, as you noticed, my website is back online, now. So I removed the site
from the space I used meanwhile. The new direct links are and
There's also an English version of my site now. It's URI is, but this is not yet working, so try

Hope this helps. Thanks for purposing my controls.