Controling images of nodes in a TreeView (C#)

Posted by ET on Stack Overflow See other posts from Stack Overflow or by ET
Published on 2010-04-03T13:24:13Z Indexed on 2010/04/03 13:33 UTC
Read the original article Hit count: 196

Filed under:
|

Hi, I am pretty new with GUI, and I guess that is a silly question, but I am stuck... I am trying to make a folder explorer using TreeView control. now, I added an ImageList with two images - one for a folder and the other for selected folder. I used the 'BeforeExpand' event to change the icon of the current node (folder). The problem is that I dont know how to change it back when the user selects other folder... what event can I use? Maybe I dont use it right... ?

Thanks guys :)

© Stack Overflow or respective owner

Related posts about treeview

Related posts about c#