Directory Dialog 2

V 1.0.0.2 - 24/09/2001 [Download]
This OCX shows the common directory dialog window. Syntax:
DirDlg.DirDlg(frm as Object, Message As String, Flags As Integer) As String
The flags are:

0=Desktop
1=Internet Explorer
2=Programs
3=Control Panel
4=Printers
5=My Documents
6=Favorites
7=StartUp
8=Recent
9=SendTo
10=Recycle Bin
11=Start Menu
12-15,28,>35=<Illegal Operation>
16=c:\windows\Desktop
17=Our Computer
18=Network Nieghborhood
19=NetHood
20=FONTS
21=ShellNew
22=c:\windows\allusers\start menu
23=c:\windows\allusers\start menu\programs
24=c:\windows\allusers\start menu\programs\startup
25=c:\windows\allusers\desktop
26=c:\windows\application data
27=c:\windows\printhood
29=StartUp
30=StartUp
31=c:\windows\allusers\favorites
32=Temporary Internet Files
33=Cookies
34=History

* Flags 12 to 15, 28 and above 35 cause an illegal operation on my computer.  If anything different happens to you or you can find extra flags, please e-mail me.

E.g.

DirDlg.DirDlg Me, "Select a folder", 0
'shows the dialog with text 'saying "Select a folder" with the top item being Desktop
Note: the only difference between DirDlg and DirDlg2 is that DirDlg2 has allows you to specify the owner form, whereas with DirDlg, the form was not automatically disabled when the Directory Dialog was visible.

Martin Allen 2001