title: How to Iterate through all nodes of a treeView Control. C#
body: <p>I am selecting all controls I have in a <code>form</code></p>
  
  <p>if controls are <code>Treeviews</code>, I'll iterate all nodes they have</p>
  
  <p>I need something like:
  (And it is my code)</p>
  
  <pre><code>foreach (Control c in PanelSM.Controls)
  {
      if (c is TreeView) 
      {    
          TreeNodeCollection myNodes = c.Nodes;//&lt;&lt;&lt;&lt;&lt; Here is a mistake
          foreach (TreeNode n in myNodes)
          {
              String text = rm.GetString(n.Name);
              //And more things
              //...
              //...
              //...
         }
      }
      //...
  }
  </code></pre>
  
  <p><strong>Any idea?</strong></p>
  
  <p>Thank You</p>