C# windows forms 遍历treeview
TreeNodeCollection tc = treeView1.Nodes;
GetNode(tc);
public void GetNode(TreeNodeCollection tc)
{
foreach(TreeNode TNode in tc )
{
string PlaceNodeText = TNode.Tag.ToString()+"(" + db.ReturnCount(countPlaceTotalsql) + ")";
GetNode(TNode.Nodes);
}
}