how do you use flags to allow users to select multiple files in the open dialog box?
Printable View
how do you use flags to allow users to select multiple files in the open dialog box?
Sraight from VB help...
cdlOFNAllowMultiselect &H200 Specifies that the File Namelist box allows multiple selections.
The user can select more than one file atrun time by pressing the SHIFT key and using the UP ARROW and DOWN ARROW keys to select the desired files. When this is done, the FileName property returns a string containing the names of all selected files. The names in the string are delimited by spaces.
CommonDialog1.Flags = &H200
if youd like to use other flags just separate them by using "OR"
CommonDialog1.Flags = &H200 or &H1000
cdlOFNFileMustExist &H1000 Specifies that the user can enter only names of existing files in the File Name text box. If this flag is set and the user enters an invalid filename, a warning is displayed. This flag automatically sets the cdlOFNPathMustExist flag.