Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image list problems
Message
 
To
23/01/1999 14:29:45
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00179426
Message ID:
00179431
Views:
21
>HI all !!!
>I have a form that contains a treeview object and a imagelist, and assigned image index to the nodes of the tree...
>when I run the form I have the error saying that I have to initialize the imagelist object before I use it!!
>
>what I'm missing?
>Thanks

William, add to your Treeview.Init()

this.Object.ImageList = this.parent.oleImageList.Object

(supposing your ImageList control has the name "oleImageList")
(don't forget that ImageList control must 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform