Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview and Imagelist question
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Treeview and Imagelist question
Miscellaneous
Thread ID:
00155532
Message ID:
00155532
Views:
53
I have one Treeview and one ImageList controls on my form.
Using ImageList properties tab I added into it two pictures 32*32.
My problem is that TreeView ActiveX control doesn't recognise my ImageList control.
In Form.Init event I have following code

Local Node
Node=ThisForm.TreeView.Nodes.Add(,,"Subscriber","Sidorov","subs")
Node.Expanded = .T.
ThisForm.TreeView.Nodes.Add("Subscriber",4,"A","Petrov")
ThisForm.TreeView.Nodes.Add("Subscriber",4,"B","Ivanov")
ThisForm.TreeView.Nodes.Add("Subscriber",4,"C","Baranov")

When I run the form I got an error: ImageList must be initialized before it can be used.

Please help to solve the problem.

Igor Gelin, System Developer
Igor Gelin
Database Developer
Next
Reply
Map
View

Click here to load this message in the networking platform