C# – Redirect WinForms web browser Control pop ups to another WinForms web browser control with form data


I have a c# web browser and one of the pages it displays has a form. When the form is submitted it posts data to a new window in IE. I want to catch that data and forward it to another C# web browser that I have in my application. So I don't want it to open an IE browser when the javascript function window.open is called, I want it to open it in the 2nd browser window.

Best Solution

Note the change I made in the subject. There's no such thing as a "C# web browser".

You are using the Windows Forms Web Browser Control in a C# program. You want to be notified when a new windows is being created so that you can create another Windows Forms form to display another Web Browser Control containing the new content.