Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to add two images in treenode,one ahead of node.text,the other behind, and I want to know how to change the node backcolor when it is clicked.I have tried many methods which present in the web,but they don't work.I need your help. Thank you very much.
Posted
Comments
Suresh Suthar 15-Sep-11 0:55am    
Share your code.
SwaxRak 15-Sep-11 3:13am    
your question is Add image in treeview control or change the node backcolor when it is clicked?
BillWoodruff 15-Sep-11 4:38am    
If you are using a standard WinForm TreeView, you will not be able to add a second image after the Node Text. fyi: I use a 3rd. party TreeView Control from Lidor Systems that does allow you to have multiple controls, or images, in a TreeNode.

1 solution

This works for me

treeView.SelectedNode.ForeColor = Color.Green;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900