I use this code in a treeview wrapper class to add images to the ImageList:
PARAMETERS tcImageFile, tcKey, tiIndex
IF ISNULL(tiIndex) OR EMPTY(tiIndex)
THIS.oleImageList.ListImages.Add(, tcKey, LoadPicture(tcImageFile))
ELSE
THIS.oleImageList.ListImages.Add(tiIndex, tcKey, LoadPicture(tcImageFile))
ENDIF
Arne
>Does anyone know if its possible to add an image to an
>ActiveX ImageList at runtime?
>
>I'd like to allow the user to pick an image with
>GETPICT()and then use that image in an ActiveX TreeView.
>
>Any thoughts?
>
>TIA