Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using the ImageList with a ListView
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00350943
Message ID:
00351028
Vues:
28
Yes, it is instantiated, I checked by getting a count of the ListImage Items.

This has got me puzzled as it would seem everyone else does it in the following manner, yet it won't work for me:

THISFORM.ListView1.Object.SmallIcons = THISFORM.ImageList1.Object

- Aaron.


>>Thanks but it gives me the same error.
>>
>>- Aaron.
>>
>>>>How do I assign the ImageList to the Listview Control in VFP6?
>>>>I've tried:
>>>>
>>>>THISFORM.ListView1.SmallIcons = THISFORM.ImageList1
>>>>
>>>>And
>>>>
>>>>THISFORM.ListView1.Object.SmallIcons = THISFORM.ImageList1
>>>>
>>>>But I get an "Invalid Object" Error.
>>>>
>>>>Thanks,
>>>>
>>>>- Aaron.
>>>
>>>Try:
>>>THISFORM.ListView1.Object.SmallIcons = THISFORM.ImageList1.Object
>
>The ImageList control must instantiate before the ListView, otherwise, it doesn't as yet exist when the ImageList initalizes. Are you sure that it does exist when you get this error?
Aaron Young
Red Wing Software, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform