Sean said:
How to iterate nodes (including child nodes) in a Treeview using VB.Net?
Here's some C# code to do it. I don't think it's a huge leap to
translate it to VB.
private void DoStuffWithNodes(TreeNodeCollection nodes)
{
foreach (TreeNode node in nodes)
{
// Do stuff with "node"
/* ... */
// Now do the same stuff with the nodes beneath this node
DoStuffWithNodes(node.Nodes);
}
}
Then in your normal code (under a button click or something):
{
DoStuffWithNodes(treeView1.Nodes);
}
Hope this helps!