Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with ImageList
Message
De
12/12/1997 11:17:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00065533
Message ID:
00065540
Vues:
31
>I have a form with an ImageList that I want to add images to programatically. In the form's activate method I have this code:
>
>THISFORM.oleMyImageList.ListImages.Add(, "MyIconKey", LOADPICTURE("MyIcon.ico"))
>
>I get an 'Illegal file descriptor' error. What am I doing wrong? I was referring to Andy MacNeill's article in FPA's Jan '97 issue for help. Any ideas?
>
>TIA

Can't help you with the specific code to get this running, but I can tell you that .activate is probably the wrong event to put this code in. Activate fires every time that form regains focus from another form or program. This could result in your code getting fired multiple times.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform