Re: How to display thumbnail view of a folder in VB 6 ?
Hello and welcome.
Why not use the common dialog control in Thumbnail mode since you anyway want to select files.
I've attached a sample using a trick which I recently found out for own needs.
Pressing the button opens a common file open dialog.
The trick is, after the dialog is shown, a timer fires and sets the dialog view style to Thumbnails and also resizes it (you can adapt size and position easily to your ideas).
The only drawback is, it will not work in the IDE, whereas the compiled executable works perfect. Load it in the IDE, look what it does (it's quite simple), compile it and run the exe.
If you want it to allow multiple file selection I can show how you evaluate the result.
Re: How to display thumbnail view of a folder in VB 6 ?
Ok, I've added multi select to the code and a list box to show the selections in.
Look at the Command1_Click routine. It shows the required flag settings of the common dialog for multiselect.
Also it shows how to split up the resulting string into a sequence of qualified filenames.
You have to do this splitting because the dialog returns one long string containing the path, followed by all selected names. The items are separated with the Null character.
Hope that shows how to do it.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.