Link to home
Start Free TrialLog in
Avatar of sydneyguy
sydneyguyFlag for Australia

asked on

adding images to a ole class TreeCtrl in msaccess 2003

have a tree control in ms access 2003 and am trying to hook up  pictures to the nodes on the system. cannot seem to fine the way to do it i can bring up the treectl properties and have the image list and the picture tab in front of me but not sure of the syntax to hook up picture to the node its self on load.
the object is called xtree
can access the nodes ok just need the step through to get one attached then i am off. see image below
thanks for your help in advance
treeviewprop.jpg
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

If I recall correctly, you've got to add an ImageList to the form, then add the Images to that ImageList (with the correct "index" or "key" values), and then assign that ImageList to the Treeview.

This code snippet might help:
http://www.vb-helper.com/howto_treeview_add_node.html
Avatar of sydneyguy

ASKER

have been through the article and have an idea that the image list needs to be bound to the project
so i am guessing that the images need to be set up in the image list before i move forward so that i can use
For i = 1 To 6
        TreeImages.ListImages.Add , , TreeImage(i).Picture
    Next i
to set up the images
but when i try to add a image to the image list manually , image list is marked to None ...and cannot seen to set it here and cannot seem to add any pictures to the list help is not available and cannot seem to find any good resources on the subject will keep looking but any ideas
shot of image set up screen
imagesetup.jpg
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks as always for the help and the point in the right direction, it alwasys helps to have another set of eyes,found this great site

**************************************************
http://www.mwelling.de/Publication/inside_access.html
***************************************************

with some good down loads all bit it in german but there what i am looking for
thanks for the help
garry
thanks for the help got me to the best site for the information