|
-
Jul 31st, 2002, 07:16 AM
#1
Thread Starter
Fanatic Member
Tree View control
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 ??
-
Jul 31st, 2002, 07:20 AM
#2
Fanatic Member
VB Code:
Treeview1.Nodes(i).ForeColor = vbRed
-
Jul 31st, 2002, 07:37 AM
#3
Thread Starter
Fanatic Member
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 ??
-
Jul 31st, 2002, 07:42 AM
#4
Fanatic Member
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.
-
Jul 31st, 2002, 08:25 AM
#5
Thread Starter
Fanatic Member
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..
-
Jul 31st, 2002, 08:36 AM
#6
Fanatic Member
what's the code you have that's causing that error?
-
Jul 31st, 2002, 08:43 AM
#7
Thread Starter
Fanatic Member
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 ??
-
Jul 31st, 2002, 08:58 AM
#8
Fanatic Member
could be that you also need to replace your imagelist with the 6.0 version.
-
Jul 31st, 2002, 09:13 AM
#9
Thread Starter
Fanatic Member
did that and it works and I got the forecolor property now !!
nice.. thanks for the help....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|