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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

choosing a folder

Status
Not open for further replies.

nicasa

Programmer
Feb 3, 2003
54
ES
Hi All,

I am familiar with the use of Topendialog class for a user selecting files in a gui environment. What I would like to know is how to select a folder without selecting a file.

You can use Topendialog objects to select folders indirectly by selecting any file in the chosen folder but how can you display ONLY FOLDERS and allow the user to select ?


regards,

bigSteve
 
I use SelectDirectory() and it works fine for me.
There are two prototypes of SelectDirectory(). You should get a look from BCB help.

Good luck.
 
Hi,

The SelectDirectory() call will work for local hard drives or network drives that are mapped as a drive letter. It uses the Windoz 3.x style of browsing. You can use the standard Windoz 'browse for folder' dialog that most applications use today which also supports UNC file names.

A good explanation of how to do this is on this page:

I hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top