Change TreeNode image on expand-collapse events

Posted by Alexander Stalt on Stack Overflow See other posts from Stack Overflow or by Alexander Stalt
Published on 2010-04-02T12:32:41Z Indexed on 2010/04/02 12:33 UTC
Read the original article Hit count: 303

Filed under:
|
|

I have a treeView with many nodes. I want that some nodes change their image when node collapsed/expanded. How can I do it ?

Unfortunately, TreeNode don't have properties like ExpandNodeImage, CollapseNodeImage \

TreeView can change very often, so nodes can be deleted/added.. i can delete child nodes and so on...

Maybe, there is a class like ExpandAndCollapseNode ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms