Advertisement
3_2004-2005 Miscellaneous #139797

How to keep new Internet Explorer windows from popping up... great for the WebBrowser control!

Have you ever created an application that relies on a Microsoft Internet Explorer interface (using the WebBrowser control, for example), and you want to keep those pesky IE popup windows from popping up when you don't want them to? If you have, then you know that there is no built in way to keep Internet Explorer from creating new windows under certain circumstances. This program solves this problem by performing the following functions: (1) On startup, the program examines all of the active windows on your system and remembers which ones are Internet Explorer windows. (2) The program then goes into a monitoring mode in which it periodically (10 times per second) checks to see if any new Internet Explorer windows have been created. (3) If any new IE windows are found, the program posts a close window message into the new IE window's message queue, effectively destroying the window.

AI

Resumen de IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Código fuente
original-source
Upload
Comentarios originales (3)
Recuperado de Wayback Machine