• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 730
  • Last Modified:

Changing Font In TreeNode Asp.Net

How do I change the font color of a treenode?
I have tried this:
New TreeNode("<font color=red>" & node.Text & "</font>" , id)
which works for changing the font color, but if you do it like this you lose the "+" to expand the nodes out for some reason. Anyone got a way to change the font colors without disturbing the control. They should have a property in the TreeNode object but thye dont.
1 Solution
did you tried somthing.

new TreeNode().Style.add();
npl77Author Commented:
Style property is not there under treenode in ASP.Net 2.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.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now