I want to select multiple files using the CommonDialog control. So I call it with code like this:
With MyCommonDialog
.Filter = "All text files (*.txt)|*.txt"
.Flags = cdlOFNFileMustExist Or cdlOFNHideReadOnly Or cdlOFNAllowMultiselect Or cdlOFNLongNames
.ShowOpen
End with
Instead of the usual nice clean looking dialog box I get an old-syle one showing drives, folders and files in separate list boxes, but more importantly the file names are converted to old 8.3 dos-style format (despite the appropriate flags being set). See attached samples.
Any ideas for a neat solution out there?
With MyCommonDialog
.Filter = "All text files (*.txt)|*.txt"
.Flags = cdlOFNFileMustExist Or cdlOFNHideReadOnly Or cdlOFNAllowMultiselect Or cdlOFNLongNames
.ShowOpen
End with
Instead of the usual nice clean looking dialog box I get an old-syle one showing drives, folders and files in separate list boxes, but more importantly the file names are converted to old 8.3 dos-style format (despite the appropriate flags being set). See attached samples.
Any ideas for a neat solution out there?