Anyone know if there is a way to change the color of the font
on an individual node.. not all the text for the whole tree ??
Printable View
Anyone know if there is a way to change the color of the font
on an individual node.. not all the text for the whole tree ??
VB Code:
Treeview1.Nodes(i).ForeColor = vbRed
:)
I tried to use that property.. it doesnt show as a popup list property and when I forced it upon it it errored..
it does have a trwtest.nodes(2).text but no forcolor under that either...
am I missing something ??
hmm....that's odd, it shows up on mine. check in your Components list, are you using Windows Common Controls 6.0? could be that earlier versions don't support it.
I was using 5.0... trying to update it to 6.0...
you know if there is an easy way to do that.. I tried just adding
in the new one and renaming it.. but now when I run it it tells me
"procedure delcaration does not match description of event or procedure having the same name"
sounds like the new treeview must have different parameter lists..
what's the code you have that's causing that error?
I fixed it ... it was the node as param..
its needs MSComctlLib.Node now...
but I cant get it to associate with my old image list...
it just doesnt showup in the drop box when I go to the properites of the tree view... something new I need to do ??
could be that you also need to replace your imagelist with the 6.0 version. :)
did that and it works and I got the forecolor property now !!:D
nice.. thanks for the help....