title: c# set focus on multiple child forms
body: <p>I have a main form and then open one childdialog (nr 1) and on that I open an other childdialog (nr 2).</p>
  
  <p>When I then open up that main form from another application the focus is set on the last child (nr 2), when I press enter the focus is set on the main form, I want the focus to go on child nr 1.</p>
  
  <p>To open up the main form I use Activate();</p>
  
  <p>Then in OwnedForms I have an array of children.</p>
  
  <pre><code>Activate();
  
  if(OwnedForms.Any())
  {
     OwnedForms.Last().Focus();
  }
  </code></pre>
  
  <p>When I choose to close that form that has focus, the focus will go to the main form instead of the next child (last -1) in the OwnedForms array.</p>
  
  <p>Tried bringtofront and sendtoback without any success.</p>