> Set the backcolor property of the treenode class.
>
[quoted text clipped - 16 lines]
>
> > ~ Maryam
<ahmed.maryam@gmail.com> schrieb:
> Did you mean forecolor? Setting the forecolor property changes the
> color of all the nodes in the treeview, I was wondering how I can
> access each node individually ie. have lots of different colored
> nodes. Any ideas?
Instead of setting the control's 'ForeColor' and 'BackColor' properties, set
those of the individual 'TreeNode' objects.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
ahmed.maryam@gmail.com - 13 Mar 2007 20:30 GMT
Hi Herfried,
Thanks for your response, that is exactly what I am trying to
accomplish but I'm not sure how to access the individual color
properties of each TreeNode object. I tried
"TreeNode.Forecolor.Equals("Green")" or something like that but it
doesn't work. I think I just have the syntax wrong, any ideas? Thanks!
~ Maryam
On Mar 13, 11:16 am, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h...@gmx.at> wrote:
> <ahmed.mar...@gmail.com> schrieb:
>
[quoted text clipped - 10 lines]
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Bryan Phillips - 13 Mar 2007 22:57 GMT
Use this syntax:
TreeNode.ForeColor = Color.Green;
--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
> Hi Herfried,
>
[quoted text clipped - 22 lines]
> > M V P <URL:http://dotnet.mvps.org/>
> > V B <URL:http://dotnet.mvps.org/dotnet/faqs/>