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
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.