>I am trying to use oleTreeView from VFP6.0 and it keeps giving me an error that Imagelist must be initialized prior to use. I know that in VFP5 the order in which these two controls are added to the form makes a big difference, so I have tried adding them in both sequences, first one then the other. Neither seems to make a difference.
>
>The ImageList property in the TreeView control is not staying set: I can set it (in the ctlTreeView properties, not VFPs), save the properties, then immediately go into the property list again and it is back to
.
>
>I am hoping someone has had some experience with this and can help.
>
>Thanks very much
>
>Reg
Well, well, isn't the world small. I was playing with it all morning.
In the TreeView's Init it's simply
this.object.imagelist=thisform.ImageList1
or
this.imagelist=thisform.ImageList1
...whichever fires. I'm kind of confused after all the dance I had with it, so don't know for sure when you have to insert the .object reference and when not (I think it's a yes for properties, and a nope for methods, but that's guesswork). Anyway, in my case it won't even find the imagelist object from TreeView property sheet anymore, so I ended up adding it programmatically.