Link to home
Start Free TrialLog in
Avatar of Felipe Souza
Felipe SouzaFlag for Brazil

asked on

Change font of Node

Hi experts,
i need change font only 1 node dinamic generated on my TreeView component in ASP.NET using VB.NET.

Please help me.
ASKER CERTIFIED SOLUTION
Avatar of Munawar Hussain
Munawar Hussain
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
if your text is Test

then change it to <font color="red">Test</font>
Its very easy for windows applications as shown below.
        Dim n As New TreeNode
        n.NodeFont = Me.Font

There is no direct way of doing this in ASP.NET.
You can change the selectednodestyle and make the node selected programmatically to apply that style on it. To select a node:
treeview1.nodes(1).selected=True
or
treeview1.nodes(1).select()