This.object.listimages.add(1,,LoadPicture("C:\VFP6LIB\bitmaps\closed1.gif")) This.object.listimages.add(2,,LoadPicture("C:\VFP6LIB\bitmaps\open1.gif"))I put the imagelist in a container, then (in my case) the treeview in the same container. Then I put the setting of the imagelist into the treeview object from the init of the container. This makes sure the loading of the images happens after the objects have finished initializing.
>With THISFORM > if type(".OleIL.ListImages") = "O" ; > and !isnull(.OleIL.ListImages) ; > and .OleIL.ListImages.Count > 0 then > .OleTV.ImageList = .OleIL > endif >Endwith>