getting Steve Lebans' FileOpen Dialog to return a folder

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
 
R

RoyVidar

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top