G
GS
Sorry about the messy copy paste in the previous post for NewWindows3. It
looked ok before posting but I found out the pasted "text" has a lot of junk
when posted
here is an more accurate and readable version
according to msdn http://msdn2.microsoft.com/en-us/library/aa768337.aspx
MSDN > MSDN Library > WebDevloper> Internet Explorer Developer > Hosting and
ReUse > WebBrowser Control > Reference for Visual Basic Developer > events
NewWindow3 Event
Raised when a new window is to be created. Extends NewWindow2 with
additional information about the new window.
Syntax
Private Sub object_NewWindow3( _
ByRef ppDisp As Object, _
ByRef Cancel As Boolean, _
ByVal dwFlags As Long, _
ByVal bstrUrlContext As String, _
ByVal bstrUrl As String)however I can only see NewWindow exposed for
webbrowser
How do I get access to this NewWindow3 event?
I tried in user control with webbrowser named webBrowser1
Private Sub WebBrowser1_NewWindow3(ByRef ppDisp As Object, _
ByRef Cancel As Boolean, ByVal dwFlags As Long, _
ByVal bstrUrlContext As String, ByVal bstrUrl As String)
setDebugMsg("newWindow3 of WebCtl fired. bstrUrlContext=" &
bstrUrlContext & ", bstrUrl=" & bstrUrl)
setStatus("WebCtl's WebBrowser1_NewWindow3 fired. see detail in test
tab")
......
end sub
I could not add handle webBrowser1.NewWindow3 to the above sub as webbrowser
did not exposed that event. it expose only the plain old NewWindow event.
but it never fired
looked ok before posting but I found out the pasted "text" has a lot of junk
when posted
here is an more accurate and readable version
according to msdn http://msdn2.microsoft.com/en-us/library/aa768337.aspx
MSDN > MSDN Library > WebDevloper> Internet Explorer Developer > Hosting and
ReUse > WebBrowser Control > Reference for Visual Basic Developer > events
NewWindow3 Event
NewWindow3 Event
Raised when a new window is to be created. Extends NewWindow2 with
additional information about the new window.
Syntax
Private Sub object_NewWindow3( _
ByRef ppDisp As Object, _
ByRef Cancel As Boolean, _
ByVal dwFlags As Long, _
ByVal bstrUrlContext As String, _
ByVal bstrUrl As String)however I can only see NewWindow exposed for
webbrowser
How do I get access to this NewWindow3 event?
I tried in user control with webbrowser named webBrowser1
Private Sub WebBrowser1_NewWindow3(ByRef ppDisp As Object, _
ByRef Cancel As Boolean, ByVal dwFlags As Long, _
ByVal bstrUrlContext As String, ByVal bstrUrl As String)
setDebugMsg("newWindow3 of WebCtl fired. bstrUrlContext=" &
bstrUrlContext & ", bstrUrl=" & bstrUrl)
setStatus("WebCtl's WebBrowser1_NewWindow3 fired. see detail in test
tab")
......
end sub
I could not add handle webBrowser1.NewWindow3 to the above sub as webbrowser
did not exposed that event. it expose only the plain old NewWindow event.
but it never fired