Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Jan 19, 2000

Retrieving Browseforfolder() Files

Question:
I'm using a function named Browseforfolders() that uses the following code:
Private Declare Function SHBrowseForFolder Lib "shell32.dll" _
Alias "SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) As Long
and the declaration of this constant:
Private Const BIF_RETURNONLYFSDIRS = &H1
What I would like to know is, if using this function, is it also possible to obtain the files from the directory? Best regards, Bruno bruno@escripovoa.pt Visual Basic Software developer

Answer:
If you want to pick a file, you should use the common dialog control or the equivalent API calls.

The SHBrowserForFolder API call is not designed to show file information.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date