Is there a way to stop the WebBrowser control from causing its parent form to bring itself to the front?
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?
Update:
I've found a temporary answer to my problem.
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.
It's kind of hacky, but it works. I'm open to any better suggestions, though.