Hi,
I have a treeview where I want to assign icons to only certain nodes. For some nodes I do not want an icon at all. I'm using an imageList to specify the icons and when a specific kind of node is added the relevant icon is assigned (using imageKey) from the imageList.
The problem I am having is that where I do not assign an icon to a node, one is displayed anyway. It appears that if i do not assign an icon, the node displays the image from position 0 in my imageList.
I have tried setting the imageKey value to -1 for the nodes that shouldn't have an icon, but I still get the icon from position 0 displayed.
Is there a way around this, or am I missing something simple.
thanks
Jason
I have a treeview where I want to assign icons to only certain nodes. For some nodes I do not want an icon at all. I'm using an imageList to specify the icons and when a specific kind of node is added the relevant icon is assigned (using imageKey) from the imageList.
The problem I am having is that where I do not assign an icon to a node, one is displayed anyway. It appears that if i do not assign an icon, the node displays the image from position 0 in my imageList.
I have tried setting the imageKey value to -1 for the nodes that shouldn't have an icon, but I still get the icon from position 0 displayed.
Is there a way around this, or am I missing something simple.
thanks
Jason