Chang color of TreeNode Programmatically?

R

rlueneberg

I am want to change the color of a TreeView node but on VS2005 does
not present any property for it. I saw that windows forms treeview
controls has that. Where is it?

foreach (TreeNode t in TreeView1.Nodes)
{
if (CurrentURL.IndexOf(t.NavigateUrl) > 1)
{
//t.BackColor = Color.Yellow;
t.Expand();
}
}

Thanks

Rod
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top