Can any one tell me if it is possible for a windows forms VB program to
detect if any Internet Explorer windows are open? I wish to provide a
message informing the user that they must close all Browser windows
before they can continue

NOTE: These windows will not have been spawned by my program.

Thanks
Richard

Re: Detect whether any Browser windows are open by Mattias

Mattias
Wed Sep 21 13:46:54 CDT 2005


>Can any one tell me if it is possible for a windows forms VB program to
>detect if any Internet Explorer windows are open?

Add a reference to Shdocvw.dll and then write someting like

For Each ie As InternetExplorer In New ShellWindows()


I believe this enumeration returns regular Explorer windows too so you
may have to filter them out.


Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.