>I would like to use the treeview control in my vfp 5.0 application. But I have problems using pictures in the nodes. I get the message that the image list control must be initialized before it can be used. I checked through the samle application but I couldnt find any code how to initialize the image list control.
>
>How must this be done?
Thomas, try this in your TreeView Init method:
this.Object.ImageList = this.parent.oleImageList.Object
(supposing your ImageList control has name "oleImageList") And ImageList should be placed on the form before the TreeView.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison