>>>Thanks a lot.
>>>It works fine. But now I've another problem.
>>>How to make always visible icons associated to items regardless they are selected or not ?
>>>Thank you again
>>>Alessio
>>
>>I'm not sure I understand your question. Could you describe it more completely? Are you referring to using the treeview and imagelist together, or is this question about only one of these controls? Thanks.
>
>I was trying to put pictures in the treeview control, so I have to reference to a imagelist control (is it right ?), It works fine but icons associated with items are showed only when items are selected then they become invisible.
>I tried with selectedimage property and expandedimage property but they don't give me the result I want.
>To be more exact , i want to build a control like the project manager window.
>Thank yoy again
>Alessio
In the add method, you must indicate the image for selected item and the image for not selected item. Like this:
mytreeview.Nodes.add(, , mykey, mytext, 1, 2)
the two last parameters are the images to be used. Hope this helps.
Saludos,
A.G.P.
---------