I am using an ImageList control with a ListView control OK.
When a user selects a row in the ListView I want to show additional fields in another part of the form including the associated ListView image in a standard VFP image control.
The code I am trying is something like:
thisform.Image1.picture = thisform.ImageList1.ListImages(1).picture
This generates a 'Data Type mismatch' error. I have tried both icon (ICO) and bitmap (BMP) as the image types loaded into the ImageList control....
MSDN suggests this should be possible in Visual Basic in article 'Using the ImageList with Other Controls'- so assume also possible in Visual FoxPro??
Any suggestions??