Need file tree in a form.

smpayne

Registered User.
Local time
Yesterday, 20:03
Joined
Sep 29, 2004
Messages
27
I have a form in which I want to place a box that has a specific file directory displayed at all times for the user to open files from.

Please help!! Really new at this.

:)
 
Searching this forum is such a novel idea. :p

Pay attention to the ShellExecute method I am using to open a file in my
Browse [Find a directory or file] sample. It should be enough to get you started.
 
Thanks

Actually, I downloaded your file and found that I could use it. However, is there a way to have it default and over to a specific directory location?
 
smpayne said:
Actually, I downloaded your file and found that I could use it. However, is there a way to have it default and over to a specific directory location?
Yes, if you are using the bBrowse_Click() event in the fFindOpenImportFile form.

Code:
    varFileName = tsGetFileFromUser( _
    fOpenFile:=True, _
    strFilter:=strFilter, _
    rlngflags:=lngFlags, _
[COLOR=Blue]    strInitialDir:="X:\TestDirectory\", _
[/COLOR]    strDialogTitle:="Find File (Select The File To Import And Click The Open Button)")
 
Perfect!

Thanks so much for your assistance.
 

Users who are viewing this thread

Back
Top Bottom