Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with ImageList
Message
From
12/12/1997 11:44:36
 
 
To
12/12/1997 11:17:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00065533
Message ID:
00065548
Views:
34
>>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.

I can't tell you answer either, but I know the problem isn't the .activate because I have the exact same problem and the code is in the .int()
Previous
Reply
Map
View

Click here to load this message in the networking platform