Try putting your treeview and imagelist controls in a container and save that as the class. What seems to have happened is that you have put the imagelist and the treeview on a form, saved just the treeview as class - you then lose the imagelist control when using the saved treeview class.
>Hi, Foxes!
>
>I have a problem and I don't know what to do:
>
>I have a form with a TreeView. It works pretty good. Today, I need to save it as class, because I need to reuse it.
>
>I've saved as class, without made any change in code. However, it doesn't work as class.
>
>Error Message: UNKNOWN MEMBER OLEIMAGELIST
>
>I'll explain: In TreeView's Init, I have the following code (the problematic one)
>This.Object.ImageLIst = This.Parent.oleImageList.Object
>
>This code is necessary because we need ImageList Controle to put bmps in treeview.
>
>Well, as I already told, the same cold works with form without been class, but as a class, it doesn't work.
>
>May anybody help me?
>
>P.S.: I'm using VFP 6 with Service Pack 3
>
>Thanks in Advance