title: CEFSharp Open New window
body: <p>Alright all, </p>
  
  <p>I have stumped myself, spent the last few days searching and trying to find a solution with no luck. </p>
  
  <p>Running latest version of CefSharp, coding c# and vuejs. I am able to easily get Form1 to display my main webpage though localhost. Setup and initialization of the chromium browser is fine. I am able to communicate from the web page back to c# through  </p>
  
  <pre><code>browser.JavascriptObjectRepository.Register("bBrowser", new JSInterface(), true);
  </code></pre>
  
  <p>On the javascript side I have the following</p>
  
  <pre><code>async openStandings(){
    await bBrowser.kappsopenStandings().then((result1)=&gt;{ 
        this.filler = result1
  
         return result1                 
  })
  },
  </code></pre>
  
  <p>The above code calls the following c# function in the jsInterface class</p>
  
  <pre><code>   public bool kappsopenStandings(
          )
      {
  
          bool m = false;
  
  
          Standings S = new Standings();
  
          S.Show();
  
  
          m = true;
          return m;
      }
  </code></pre>
  
  <p>The above Standings class is a form which has the following Load function and InitBrowser function.</p>
  
  <pre><code>private  void Standings_Load(object sender, EventArgs e)
      {
          this.StartPosition = FormStartPosition.CenterScreen;
  
          InitBrowser();
      }
  </code></pre>
  
  <p>and the InitBrowser function:</p>
  
  <pre><code>    public void InitBrowser()
      {
  
         standingsbrowser = new ChromiumWebBrowser(thelink);
  
          Dock = DockStyle.Fill;
          this.Controls.Add(standingsbrowser);
  
          Console.WriteLine("Created Window");
      }
  </code></pre>
  
  <p>Ok, so what happens is the standings windows is created and everything freezes and hangs. </p>
  
  <p>Now, through my research I understand that when I call from the webpage I am not impacting the UI thread which seems to be where my issue is. </p>
  
  <p>If I place an actual c# button on the form and click it all is fine. I have tried to PerformClick() on a visible=false button on Form1 with the same results as above. </p>
  
  <p>Could someone point me in the right direction for creating multiple winforms each with there own browse?</p>
  
  <p>Thank you, </p>
  
  <p>Kory </p>