prompt user to specify a directory
Try the API call:
Declare Function SHBrowseForFolder Lib "shell32" (lpbi As BrowseInfo) As Long
BrowseInfo is a structure as follows:
Private Type BrowseInfo
hWndOwner As Long
pIDLRoot As Long
pszDisplayName As Long
lpszTitle As Long
ulFlags As Long
lpfnCallback As Long
lParam As Long
iImage As Long
End Type
"mini" wrote:
Hi,
How do I prompt user to specify a directory? I don't want them to type in
the directory but instead they can browse around and select the correct path
just like in "Open File".
Thanks a lot,
Mini
|