title: Accessing all the nodes in TreeView Control
body: <p>I have a <code>TreeView</code> Control with set of nodes and child nodes. For example:</p>
  
  <blockquote>
    <p>ROOT has A,B,C.</p>
  </blockquote>
  
  <p>A has a1, a2, a3 and then that a1, a2 also contains some nodes like x1, x2, x3 and so on. Like this many subnodes are there. I know it is possible to use loops with a for loop.</p>
  
  <p>I just want to access all the nodes in <code>TreeView</code> control using one or two for loops.</p>
  
  <p>Is there any algorithm for that or is there any other way?</p>
  
  <p>One more question: Is it is possible to have the path of a tree node in an object or in a string using any library functions? For example:</p>
  
  <pre><code>string S = TreeView1.Nodes[i].Nodes[j].Nodes
  </code></pre>