How would you change the text on and existing treeview item? I have a parent Item named "files" with text "Files (0 Files)". When a files is added as a child I would like it to read "Files (1 Files)" or what ever number after more files are added.
Printable View
How would you change the text on and existing treeview item? I have a parent Item named "files" with text "Files (0 Files)". When a files is added as a child I would like it to read "Files (1 Files)" or what ever number after more files are added.
Every Node has a Text property. All you need to do is set it.
Dim oNode as Node
Set oNode = Treeview1.Nodes(1)
oNode.Text = "Files (" & oNode.Children & " Files)"