sydneyguy
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
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
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
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
ASKER
shot of image set up screen
imagesetup.jpg
imagesetup.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
**************************
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
ASKER
thanks for the help got me to the best site for the information
This code snippet might help:
http://www.vb-helper.com/howto_treeview_add_node.html