Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access treeview.listimage property 1

Status
Not open for further replies.

sarduspater

Programmer
Jan 31, 2010
38
IT
I tried to modify plus-minus option inserting icons.
In vb6 it works fine, loading images in a ImageList control, then refering it using
TreeView1.ListImage = ImageList0

In this version of treeview control (access 2007) ImageList property is not available.

How can I do?

Thanks in advance



Candu si tene su 'entu es prezisu bentolare.
 
It is a property. But you probably need to set the treeview object, not the treeview control. Once you set the object the property should appear in the intellisense.

Dim myTree As TreeView
Dim myNodes As Nodes
Dim myNode As Node
Set myTree = Me.xTree.Object
myTree.ImageList = Forms("someForm").imgLst.Object
Set myNodes = myTree.Nodes
For Each myNode In myNodes
myNode.Image = "some Image"
Next myNode
 
Very well, it works fine.

Thank you, MajP.

Candu si tene su 'entu es prezisu bentolare.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top