title: How can I control new windows in GeckoFX (C#)
body: <p>I am working on web automation project using GeckoFX and I have encountered an obstacle that I cannot get through by myself.</p>
  
  <p>There are some similar questions around here, but no one of them is answered, so I will try to explain my problem as good as I can.</p>
  
  <p>When I open a "target=_blank" link, a new window automatically pops up (by default)
  I need to get control over it (e.g. resize).</p>
  
  <p>I have tried to use CreateWindow event, which allowed me to cancel the popup. 
  However, when I try to access the Webbrowser inside the popup by using Eventargs, everything just freezes and that's the end.</p>
  
  <p>Here's the code, that I used:</p>
  
  <pre><code>void GeckoWB_CreateWindow2(object sender, GeckoCreateWindow2EventArgs e)
  {
      //This example works
      e.Cancel = true;
  
      //and this doesn't
      //e.WebBrowser.Navigate(e.Uri);
  } 
  </code></pre>
  
  <p>Thank's in advance.</p>