>Hi all,
>I have MS Visual FoxPro 5.0 (not 5.0a)
>I use in form TreeView Control version 6.0 and ImageList Control version 6.0
>In properties TreeView control I select my ImageList control and click on APPLY and save. When I click again on properties in TreeView control, ImageList property is empty.
>How can I assign ImageList to this TreeView ?
>
>Thanks.
Hi Martin,
Put in your Treeview.Init()
this.Object.ImageList = this.parent.oleImageList.Object
(supposing your ImageList control has name "oleImageList")
I assume that ImageList control was placed on the form before the TreeView - in VFP the ImageList has to be placed on the form before the TreeView or the other ActiveX control which may use it.
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