title: How can I programmatically select or scroll to a TreeNode in a TreeView based on a string path?
body: <p>I am implementing one of the common scenarios of a TreeView control and I am using a drives, files and folders. to make a File System. That means each node potentially has a path.</p>
  
  <p>Problem is, we have the ensureVisible method but am not entirely convinced this does what it says it does. There is no explicit 'setVisible' to false property. This meas by default all TreeNodes are going to be Visible !!!</p>
  
  <p>Can someone come up with solution that proves it does work?</p>
  
  <p>Heres a method stub am working with?</p>
  
  <pre><code>    public void selectTreeNodeFromPath(string path)
      { 
          //char[] delimiters = new char[]{ '\\' };
          //string[] pathArray = path.Split(delimiters);
          //int numberOfLvlsToProbe = pathArray.Length;
  
          // foreach (TreeNode node in treeDrives.Nodes)
          //   {}
      }
  </code></pre>
  
  <p>You can see that I have I started to attack this problem but I have hit a tumbling block after a simple test case yielded NO-EFFECT !!!</p>