I'm developing a treeView in MS Access 2000 and want to place images
on some of the nodes.
When I tried this:
Set nodCurrent = objTree.Nodes.Add(nodParent, tvwChild, strKey,
"People", "C:\Images\myPicture.BMP")
Access tells me that I need to initialize the image. Not sure what
that means.
Does anyone have a simple example of how to do this?
Thanks,
Mike
Ron Weiner - 26 Jul 2003 21:51 GMT
I believe that you need to add an ImageList control to your form, add your
Image(s) to the ImageList control, and finally bind that ImageList control
to the ImageList Property of the Tree Control.
Then you can
Set nodCurrent = objTree.Nodes.Add(nodParent, tvwChild, strKey,
"People", 1)
to apply the first image in the list to the new node.
Ron W
> I'm developing a treeView in MS Access 2000 and want to place images
> on some of the nodes.
[quoted text clipped - 11 lines]
> Thanks,
> Mike
Astidis - 28 Jul 2003 23:37 GMT
You need to add an imagecontrol object in the form and set the control to use
the icons in the image control.