change treeview selected node color 
Author Message
 change treeview selected node color

hi,

is there a way to change the background color of a selected node in the
treeview?

thanks

thierry



Fri, 05 Mar 2004 16:59:56 GMT  
 change treeview selected node color
In order to set the BackColor of any Node in a Treeview, we can use syntax
like this:
  TreeView1.Nodes.Item(LastNodeKey).BackColor = &HFF&   ' Red  
Where LastNodeKey is either the Key or Index of the Node whose BackColor
you want to set.

Hope this helps.

Regards,

Alick Ye

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. ? 2001 Microsoft Corporation. All rights
reserved.



Sat, 06 Mar 2004 16:26:26 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Can treeview nodes change color?

2. Changing the Color of a Treeview Node

3. changing label text attributes for selected treeview node

4. Treeview node color

5. HOW TO: set color of nodes in TreeView

6. Different colors for Treeview nodes?

7. Color of Nodes in a treeview

8. HOW TO: set color of nodes in TreeView

9. TreeView : How to set a different color to node's Caption

10. Node Text Color in Treeview Control

11. TreeView Nodes With Multiple Colors

12. TreeView : How to set a different color to node's Caption

 

 
Powered by phpBB® Forum Software