Changing Font In TreeNode Asp.Net

Posted on 2009-12-17
Medium Priority
Last Modified: 2012-08-13
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.
Question by:npl77

Accepted Solution

muhammadyasir earned 2000 total points
ID: 26075874
did you tried somthing.

new TreeNode().Style.add();

Author Comment

ID: 26081243
Style property is not there under treenode in ASP.Net 2.0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question