You could create the imagelist as a seperate class. In the init of the form assign a new instance of the imagelist subclass to a form property.
THIS.ImageList = NEWOBJECT('MyImages','ImageListLib')
Then you can assign it to the tree.
THIS.TreeView.ImageList = THIS.ImageList.Object
Dan,
Yep, you are right - this is one of the workarounds of the ugly containter-with-ActiveX class subclassing issues.
Kind Regards
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!