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

select multi files in Common Dialog

Status
Not open for further replies.

oneshadow

IS-IT--Management
Dec 23, 2004
125
ID
How to select multi files in a CommonDialog1.ShowOpen?
by default, we only can select one file at a time. I wonder if there is a way to select 2 or more files.
U know, things just like we did in Winamp

thnks.
 
Set the cdlOFNAllowMultiselect and cdlOFNExplorer flags.
The .filename property will contain the selected path and file names, each separated by a Chr(0). The 1st entry is the path. The other entries are the selected files. See Common Dialog Flags property.
In VB6, you can use
Dim aryNames() As String
aryNames = Split(dlg.Filename,Chr(0))
To get an array of the names. Compare Code (Text)
Generate Sort in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top