Hi Markus,
Node.Bold = True works only in ver 6, property not supported in ver 5.
In version 6.
- If you are not using rootlines.
- After setting the backcolor
- you need to set node backcolor
- hide and show treelines or/and change the style and restore
'Change bgColor of the node
For Each nNode In TreeView1.Nodes
nNode.BackColor = RGB(255, 255, 0)
Next
TreeView1.LineStyle = 0
TreeView1.Style = 0 ' tvwTreelinesText Style 4.
TreeView1.BorderStyle = 1
'change treeview style
'TreeView1.LineStyle = 1 ' tvwRootLines commented out as with rootlines does not work
TreeView1.Style = 2 ' 7 - tvwTreelinesPlusMinusText ' works with Style 1 or 2
Regards
AA