title: Prevent WebBrowser control from stealing focus?
body: <p>Is there a way to stop the WebBrowser control from causing its parent form to bring itself to the front?</p>
  
  <p>If you use the InvokeScript method to invoke a JavaScript function that calls focus() on an iframe within the main parent document, it will cause the window to bring itself directly to the front(or atleast cause the taskbar icon to start flashing). Is there a way to prevent this from happening?</p>
  
  <h2><strong>Update:</strong></h2>
  
  <p>I've found a temporary answer to my problem.</p>
  
  <p>When the WebBrowser's parent Form's Deactive event is fired, I remove the WebBrowser from its container, and re-add it when its old parent form is activated again.</p>
  
  <p>It's kind of hacky, but it works. I'm open to any better suggestions, though.</p>