Select Multiple Files with the Common Dialog Control

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Beginning
Author:
Brian matumbura

Version Compatibility: Visual Basic 6

More information:
When using the Common Dialog control to select multiple files from the File Open dialog box, the FileName property of the Common Dialog control will return both the path and names of the selected files. If the Common Dialog control only allows long file names to be selected, the path and file names are returned in a null character delimited format, with the path listed first, and the files listed subsequently. This code shows you how to use the split function to retrieve/display each full path/file name.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download multiplefiles.zip