Hi
I am failing in solving the problem and trying to use the code of after select events to color the nodes that have same text with red which is working good but it is not working with after check events, these are two codes
In afterselect:
Dim i as integer
For i =o to treeview1.nodes.count-1
For each y as treenode in treeview1.nodes(i).nodes
If y.isselected then
Y.forecolor=color.red
Dim n as integer
For n= i+1 to treeview1.nodes.count-1
For each z as treenode in treeview1.nodes

.nodes
If z.text=y.text then
Z.forecolor=color.red
End if
Next
Next
End if
Next
Next
In aftercheck :
Dim i as integer
For i =0 to treeview1.nodes.count-1
For each y as treenode in treeview1.nodes(i).nodes
If y.checked= true then
Dim n as integer
For n=i+1 to treeviewr.nodes.count-1
For each z as treenode in treeview1.nodes

.nodes
If z.text=y.text then
Z.checked=true
End if
Next
Next
End if
Next
Next
Can you help?