-
I tried to use the treeview control. I added several nodes to the treeview control and then removed all the nodes using the Remove method. But when I tried to add newer nodes, an error message appeared : "Key non unique in the collection" whereas I created a new key ! What happened ?
Thanks !
-
can u paste the code please !!!!
-
Make sure the key is unique i.e. place a counter:
to add a node:
private sub
dim i as integer
i = 1
more code .......
Set mNode = tvw1.Nodes.Add(relative, tvwChild, i, Text)
i = i+1
end sub
maybe it's required to declare your integer as public or global, depending on the rest of your code
Good luck