views:

31

answers:

2

Hello guys,

I have a treeview (winforms) which have different item types on it. I have three item types on it, and when a user clicks on it, it changes the icon of that clicked item to the first ImageList image.

I don't that to happen (altought i know it's desired behavior for default treeview).

Any chance I can do this? How?

Thanks

A: 

You want the SelectedImageIndex of the node to be set to default or something other than what it's on now. You can change that through edit nodes or on the Tree View control.

Icono123
A: 

Set the SelectedImageIndex (SelectedImageKey) to the same value of ImageIndex(ImageKey) properties of each TreeNode.

Note: use SelectedImageIndex with ImageIndex OR SelectedImageKey with ImageKey.

Sameh Serag