>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??
Further investigations show that the image control is not capable of displaying the type of image stored in an image list (stdPicture). I am able to display the ImageList images in, for example, a Sheridan CommandButton.
VB supports two types of bitmap controls - image and picture, does VFP have support for the picture control (and is this compatible with the ImageList)??
TIA