colored hierarchy levels in treeview

Hello experts!

I would like to achieve colored logical hierarchy blocks in the standard MS treeview as you can see in the "British cars" example below:

http://www.purecomponents.com/products/TreeView/features.aspx


Is that possible with reasonable effort? This is the only special functionality I need, the rest of standard treeview is ok forme.

I would be very happy, if you could post code how to do that!

Thank you very much in advance!

i-ThomasAsked:
Who is Participating?
 
AgariciConnect With a Mentor Commented:
to change:
 the text color an background is very easy... just set the forecolor and backcolor on the treenode object you want
 the image may be set using imageindex (also on the treenode object)
 the font use font property of the treenode

this is the easy part.

to do more customisation you will need to implement a custom draw tree view

hth,
A.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.