title: "IndexOutOfRange" When trying to access form->treeView1->Nodes->Find array
body: <p>I'm trying to find a TreeNode with a certain Name inside my Treeview.
  For that, I want to use the Find function.</p>
  <p>The problem is every time I try to access the Array I get the IndexOutOfRange exception.
  When debugging, I can see that the index im accessing has a value in it.</p>
  <pre><code>if (!form-&gt;treeView1-&gt;Nodes-&gt;Find(gcnew String(primary.c_str()), false))
          {
              std::cout &lt;&lt; &quot;NoValue&quot; &lt;&lt; std::endl;
          }
          else
          {
              System::Windows::Forms::TreeNode^ prima = form-&gt;treeView1-&gt;Nodes-&gt;Find(gcnew String(primary.c_str()), true)[0];
              prima-&gt;Nodes-&gt;Add(second);
          }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/hwN0o.png" rel="nofollow noreferrer">Here you can see the Debug I did.</a> I put the Breakpoint at the prima variable where the array that the Find function is returning is accessed.</p>