WebBrowser Control and the NewWindow2 event
Posted on 2006-04-28
My webbrowser control loads a page from a secure site. Some of the popup links on that page are located within that site and I must load them in a new instance of the webbrowser or I will be presented with another logon dialogue. Other links are off site (unsecured) and can be opened in a new instance of IE. My preference would be to open all popup links in IE.
My question is, how can I determine which link has been clicked before the NewWindow2 event? The BeforeNavigate2 is not called before a popup window. Even better would be to pass all popup windows to IE but I can't figure out how to do this without receiving a logon dialogue.