Dim tr As WinForm.TreeView = e.Form.Controls("TreeView1")
Select Case e.Node.Level
Case 0
For Each n As WinForm.TreeNode In e.Sender.Nodes
If n.Text <> e.node.Text Then
n.IconFile = "1.png"
Else
n.IconFile = "4.png"
End If
Next
Case 1
e.Node.ParentNode.IconFile = "3.png"
For Each n As WinForm.TreeNode In e.Node.ParentNode.Nodes
If n.Text <> e.node.Text Then
n.IconFile = "4.png"
Else
n.IconFile = "1.png"
End If
Next
End Select