General information
Category:
Coding, syntax & commands
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only