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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top