root
1 treeView1.Nodes[0].Nodes.Add(1);
2 treeView1.Nodes[0].Nodes[0].Nodes.Add(2);
3 treeView1.Nodes[0].Nodes[0].Nodes[0].Nodes.Add(3);
Spent lot of time on this but to add node in the hierarchy as you want above is the way I think if you know the depth up to which nodes are to be added it would be better;
@BobJanova this is how you make a tree node a child of another;
pls keep trying to this dynamically without any limit on depth
Eg:-
if(treeView1.Nodes.Count==1)
{
treeView1.Nodes[0].Nodes.Add(1);
}
We need to find how for next node the code changes to treeView1.Nodes[0].Nodes[0].Nodes.Add(2);
Best of luck.........