Hi,
I created a user control that inherits System.Windows.Forms.TreeView so I could use the StateImageList to implementa tri-state checkbox treeview. For some of my nodes I don't have checkboxes, and I found setting node.StateImageIndex = -1 makes the node not display any space for the state image. So that works great.
However, I also want to display images on some nodes and not others. I expected to do the same thing: set node.ImageIndex = -1 for the nodes that I don't want to have an image. But when I do that, the nodes actually show the first image in the ImageList, as if I set the ImageIndex = 0.
So,is there any wayI canshow an image onsome nodes, and not on others?
Thanks,
David