Article ID: 185538
Article Last Modified on 6/29/2004
Dim WithEvents Web_V1 as SHDocVwCtl.WebBrowser_V1
This will declare a WebBrowser_V1 variable that can receive events
WebBrowser_V1 provides you with the NewWindow event.
Set Web_V1 = WebBrowser1.Object
WebBrowser1.Navigate2 "http://www.microsoft.com/"
This sets the WebBrowser_V1 object to the existing Internet Explorer
WebBrowser object.
Private Sub Web_V1_NewWindow(ByVal URL As String, _
ByVal Flags As Long, _
ByVal TargetFrameName As String, _
PostData As Variant, _
ByVal Headers As String, _
Processed As Boolean)
Processed = True
WebBrowser1.Navigate URL
End Sub
184876 How To Use the WebBrowser Control NewWindow2 Event
Additional query words: NewWindow NewWindow2
Keywords: kbhowto kbwebbrowser KB185538