I want to access all treenodes of this tree:
and I used this code:
TreeNodeCollection nodes = treeView1.Nodes;
foreach (TreeNode node in nodes)
{
listBox1.Items.Add(node.Text);
}
but it only lists the MSI motherboard.
How do I get all nodes?