Article ID: 251128 - View products that this article applies to.
This article was previously published under Q251128
This article has been archived. It is offered "as is" and will no longer be updated.
Calling showModalDialog or showModelessDialog does not fire the NewWindow2 event. This applies to DWebBrowserEvents2::NewWindow2 as well as its Microsoft Visual Basic equivalent, the NewWindow2 event for the WebBrowser and InternetExplorer objects.
The NewWindow2 event is only fired when a new instance of Internet Explorer is about to be created. The modal/modeless dialogs are not new instances of Internet Explorer. They are implemented as MSHTML host windows, allowing them to render and display HTML content (but not hyperlinks between documents). Furthermore, they do not appear in the taskbar and are closed whenever the window that created them is closed.
Steps to Reproduce Behavior
For additional information, please see the following MSDN Web Workshop Web sites:
Contact us for more help
Connect with Answer Desk for expert help.