Chang color of TreeNode Programmatically?

Discussion in 'ASP .Net Web Controls' started by rlueneberg@gmail.com, May 24, 2007.

  1. Guest

    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
    , May 24, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles Shao
    Replies:
    1
    Views:
    398
    Eliyahu Goldin
    Apr 18, 2005
  2. tanya foster
    Replies:
    3
    Views:
    3,713
    tanya foster
    May 18, 2006
  3. VanReenenc
    Replies:
    1
    Views:
    1,112
    VanReenenc
    Sep 1, 2006
  4. AAaron123

    Treenode color from anchor style

    AAaron123, Aug 7, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    447
    AAaron123
    Aug 10, 2008
  5. Kamaljeet Saini
    Replies:
    0
    Views:
    407
    Kamaljeet Saini
    Feb 13, 2009
Loading...

Share This Page