>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