[dba-VB] commondialog

Brett Barabash BBarabash at TappeConstruction.com
Fri Sep 17 12:10:32 CDT 2004


You need to use the SHBrowseForFolder API call to do that.  It's a
little tricky, but luckily there are several code samples out there:

PlanetSourceCode: http://shorl.com/fipykipopyfi
(for some reason TinyURL isn't working right today.  Had to use Shorl
instead)

CodeHound:
http://www.codehound.com/vb/results/results.asp?Q=shbrowseforfolder


-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of
bkollodge at parkindustries.com
Sent: Friday, September 17, 2004 11:06 AM
To: dba-vb at databaseadvisors.com
Subject: [dba-VB] commondialog

--------------Please open with care!------------ This message has
bypassed some of our spam filtering rules.
This message was scanned for viruses and executable code has been
stripped.
---------------------------------------------------------------

Does anyone know how to select a folder using a commondialog?  I realize
I can extract the folder from the filename - IF a file exists in the
desired folder and is selected.  The problem comes when the desired
folder is empty...

Thanks,
Bill

--------------------------------------------------------------------------------------------------------------------
The information in this email may contain confidential information that 
is legally privileged. The information is only for the use of the intended 
recipient(s) named above. If you are not the intended recipient(s), you 
are hereby notified that any disclosure, copying, distribution, or the taking 
of any action in regard to the content of this email is strictly prohibited.  If 
transmission is incorrect, unclear, or incomplete, please notify the sender 
immediately. The authorized recipient(s) of this information is/are prohibited 
from disclosing this information to any other party and is/are required to 
destroy the information after its stated need has been fulfilled.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Tappe Construction Co.

This footer also confirms that this email message has been scanned
for the presence of computer viruses.Scanning of this message and
addition of this footer is performed by SurfControl E-mail Filter software
in conjunction with virus detection software.




More information about the dba-VB mailing list