• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

How would I go about cycling thorugh the root nodes in a treeview using c#

How would I go about cycling thorugh the root nodes in a treeview using c#

I have a three tiered treeview and I need to cycle through all the nodes, check for checked nodes and pas the value of those nodes into variables. I know how to cycle through the child nodes I am uncertain how to cycle through the root nodes of the treeview.

0
Prysson
Asked:
Prysson
1 Solution
 
WebstormCommented:
Hi Prysson,

You can use the treeView.Nodes collection
0
 
PryssonAuthor Commented:
That is what I was looking for. Thanks

        foreach (TreeNode aNode in TreeView1.Nodes)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now