M
Magus
I'm trying to list the process's of my computer into a treeview.
However I'm having a problem about looping through sub nodes.
I'm using the code:
TreeNodeCollection allnodes = treeView1.Nodes;
foreach (TreeNode n in allnodes)
{
if (ppid == Convert.ToString(n.Tag))
{
n.Nodes.Add(process);
}
}
The problem is that it only checks the root nodes. How do I solve this?
However I'm having a problem about looping through sub nodes.
I'm using the code:
TreeNodeCollection allnodes = treeView1.Nodes;
foreach (TreeNode n in allnodes)
{
if (ppid == Convert.ToString(n.Tag))
{
n.Nodes.Add(process);
}
}
The problem is that it only checks the root nodes. How do I solve this?