Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

browse for folder dialog use

Status
Not open for further replies.

nickt

Programmer
Mar 16, 2001
19
US
Can I use the Browse For Folder dialog to browse for folders AND files at the same time? (like the browse window you get when creating a new shortcut on the desktop)
I've tried changing the flags on the SHBrowseForFolder function but no joy, it only shows folders.
 
Isn't the browse dialog (creating the shortcut) just the CommonDialog.ShowOpen ?
 
Add

Const BIF_BROWSEINCLUDEFILES = &H4000

to the ulFlags field of the BrowseInfo structure you pass to SHBrowseForFolder.

p.s. see also faq222-867 Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Ps. the user need to have Internet Explorer 4.0 or later installed. Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
many thanks
"Const BIF_BROWSEINCLUDEFILES = &H4000"
worked a treat.
I'd had that variable in before but had it set to &H4 for some reason.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top