When you do this
TreeView1.Nodes.Add(, , "u", "Invoices", "FoldersClosed", "FoldersOpen")
FoldersClosed is the image and FoldersOpen is the image when the node is selected.
If you want to change the image on Expand and/or Collapse you need to do
VB Code:
Private Sub MyTreeView_Expand(ByVal Node As MSComctlLib.Node)
Node.Image = "my expanded image"
End Sub
And similar code for the collapsed image in the Collapse event. If you only want to do it for some nodes you'll need to determine what is in Node.Key or Node.Text.