|
Im using the CommonDialog activeX control to select multiple file names. However I would like to be able to control using code the resulting view of the files as you can do in realtime using the view menu, ie details, thumbnails, icons etc.
I've tried changing the default view in windowsXP for that folder but the resulting view always defaults to thumbnails.
I'd also like to be able to control the order of the filenames in the dialog as you can do in realtime by right clicking in the dialog and choosing "arrange icns by".
This is my current code:
CMDialog.FileName = ""nothing
CMDialog.DialogTitle = "Select photo/s..."
CMDialog.Filter = "jpg|*.jpg"
CMDialog.Flags = cdlOFNAllowMultiselect Or cdlOFNExplorer Or cdlOFNHideReadOnly
CMDialog.InitDir = "C:\Documents and Settings\Myuser\My Documents\My Pictures\somefolder"
CMDialog.MaxFileSize = 32000
CMDialog.ShowOpen 'opens fileopen
strInputFileName = CMDialog.FileName
I'd hoped that there was a CMDialog.Flag that could be set to control this?
Any advice most welcomed, thanks Mark
|