Providing the imagelist picture as the same name as the key, and the image file's extensions are the same (BMP or ICO or etc):
MyImageList.ListImages.Add(1,[MYIMAGE],LoadPicture("MYIMAGE.BMP"))
You can use the picture attribute of the node to get the first name:
MyTreeview.Nodes.Add(,1,[Key],[NodeText],[MYIMAGE])
The first name would be:
lcImageName=MyTreeView.nodes('Key').Image
The image file would be:
lcImageFile=lcImageName+[.BMP]
In the downloads - there is a file RIO.ZIP. It offers an another way. It maintains a DBF with the imagefile names.
>Hi
>
>Please, I'd like to set the picture's image control with an icon of treeview control (the selected one)..
>
>Does anyone has any code sample on how to do it ?
>
>TIA
>
>Claudio
Imagination is more important than knowledge