Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 347
  • Last Modified:

MultiSelect Property for CommonDialog

I use CommonDialog control to Open Files and trying to let users use the MultiSelect option but the control does not include the MultiSelect property.
0
Viki
Asked:
Viki
1 Solution
 
TimCotteeCommented:
Set CommonDialog1.Flags = cdlOFNAllowMultiselect

Before the .ShowOpen, this displays a different open dialog which allows multiple file selection. You
should specify the .FileName property as a wildcard e.g., "*.*" as well before the .ShowOpen. The .FileName
property will return the list of files selected seperated by spaces. Use Split(String," ") to get an
array of the filenames.  
0
 
DennisBorgCommented:
>Use Split(String," ") to get an array of the filenames.  

Unless you've set the flag to instruct it to use long file names.

-Dennis Borg
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now