Launching vb app when IE launch 
Author Message
 Launching vb app when IE launch

Also you can add a reference to Microsoft Internet Controls and the
following code:

Option Explicit

Dim WithEvents SW As ShellWindows

Private Sub Form_Load()

    Set SW = New ShellWindows

End Sub

Private Sub SW_WindowRegistered(ByVal lCookie As Long)
Dim IE As InternetExplorer, hW As Long
Dim V1, V2

    V1 = lCookie
    V2 = Null

    If Not IE Is Nothing Then Debug.Print "New Explorer window."

End Sub

Be carefull because SW_WindowRegistered is called when a Internet Explorer o
Window Explorer or may other windows are opened. But is not called when a
Windows Explorer windows becomes a Internet Explorer window in vers >= 4.

ShellWindows is a collection of all IE, Windows Explorer (and may be other)

Eduardo Morcillo
Free ActiveX Controls: http://www.*-*-*.com/

Sun, 09 Sep 2001 03:00:00 GMT  
 [ 3 post ] 

 Relevant Pages 

1. Launching IE from VB App

2. Help: launch app based on file type, ie extension (like explorer)

3. Launching MS App from within VB app

4. Launch IE or Grab IE Instance

5. possible to use Vb to launch an IE browser window

6. Launch IE from VB.exe in Full Screen

7. Detecting IE launch in VB

8. Launching 16-Bit apps from 32-Bit app?

9. Web app launching a legacy app

10. How to launch and kill an app from my app

11. Launching eVB app from eVB app...

12. Launching Word from a VB app


Powered by phpBB® Forum Software