G
Guest
Hi, I have a treeview, called Treeview1 with one father node and some
children nodes. Number of children nodes can change since every child node is
a file name that the user add through an Open DialogBox.
I'd like the user to be able to remove one or more children nodes by
selecting them. But if I use the following syntax:
Dim Mynode As TreeNode
Mynode = TreeView1.SelectedNode.Nodes(0)
Mynode.Remove()
the first child node is always removed, even if it's not selected while the
selected node stays where it was...where's my mistake?
thanks!!
children nodes. Number of children nodes can change since every child node is
a file name that the user add through an Open DialogBox.
I'd like the user to be able to remove one or more children nodes by
selecting them. But if I use the following syntax:
Dim Mynode As TreeNode
Mynode = TreeView1.SelectedNode.Nodes(0)
Mynode.Remove()
the first child node is always removed, even if it's not selected while the
selected node stays where it was...where's my mistake?
thanks!!