title: Create folder tree, Windows Forms
body: <p>I'm new to C# and Windows Forms and want to create a simple UI like this. </p>
  
  <p><img src="https://i.stack.imgur.com/qDNbn.png" alt="enter image description here"></p>
  
  <p>I have the following arrays:</p>
  
  <pre><code>string [] projects;
  string [] subjects;  
  string [] experiments;
  string [] scans;
  string [] files; 
  </code></pre>
  
  <p>Edit: Each child element has info indicating to which parent it belongs (which may make this more suitable for an arrangement of <code>Subject [] subjects, Experiment [] experiments</code>, etc.) </p>
  
  <p>And the Windows Forms component must work this way</p>
  
  <pre><code>projects  (&lt;- when clicked should show the string array of projects)
  |
  |--- subjects (&lt;- when clicked should show the string array of subjects)
          |
          |---experiments (&lt;- when clicked should show the string array of experiments)
                 |
                 |--- scans (&lt;- when clicked should show the string array of scans)
                        |
                        |----files (&lt;- when clicked should show the string array of files)
  </code></pre>
  
  <p>I think the <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview%28v=vs.85%29.aspx" rel="nofollow noreferrer">TreeView component</a> fits the bill, but as I'm new to Windows Forms (and what to get this thing done <strong><em>fast</em></strong>), I thought I'd better check in SO first. </p>
  
  <p>Is TreeView the appropriate way to implement this UI?</p>