Detect whether any Browser windows are open

  • Thread starter Thread starter Rippo
  • Start date Start date
R

Rippo

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
 
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
 
Back
Top