Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview and imagelist
Message
From
14/05/2003 07:28:13
 
 
To
13/05/2003 19:08:20
Jordan Pastourel
Worksafe Management Systems
Toowong, Australia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00787999
Message ID:
00788104
Views:
20
Hi Jordan.

this.imagelist = this.parent.olecontrol2

This should work just fine. Let me guess: this code is in the Init() of the TreeView and you are getting an error.

If this is the case, it is because the TreeView is getting instantiated before the ImageList. Just move the code to form's Init() (and change it appropriately). In the form's init, you can be sure that both controls have been instantiated.
Previous
Reply
Map
View

Click here to load this message in the networking platform