Add a subnode to every node in a treeview

  • Thread starter Thread starter Darren
  • Start date Start date
D

Darren

Hi, two questions, first I'm tryng to add a subnode to every node in a
treeview so that it will display the expand icon, however I can't work out
how to do it.

Second, its kind of related, how do I add a subnode to a selected node at
runtime.

Thanks
 
1)
for each node as TreeNode in treeView1.Nodes
node.Nodes.Add(new TreeNode("Bob"))
next node

2) see 1
 
Back
Top