getting Steve Lebans' FileOpen Dialog to return a folder

  • Thread starter Thread starter roger
  • Start date Start date
R

roger

I have Steve Lebans' excellent "ahtCommonFileOpenSave" code that's a wrapper
the Windows File Open Dialog box.

My problem is that I don't want the users to select a file, just a folder.
As in

c:\My Folder\

not

c:\My Folder\MyFile.txt

Maybe I should be using a different dialog box?
aha tia
roger
 
roger said:
I have Steve Lebans' excellent "ahtCommonFileOpenSave" code that's a wrapper
the Windows File Open Dialog box.

My problem is that I don't want the users to select a file, just a folder.
As in

c:\My Folder\

not

c:\My Folder\MyFile.txt

Maybe I should be using a different dialog box?
aha tia
roger

Check out this wrapper for the SHBrowseForFolder API
http://www.mvps.org/access/api/api0002.htm

If you want/need to specify to give a initial folder, check out the link
to Stephen Lebans.
 
Back
Top