473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

webBrowser NewWindow3 event

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 WebDevloperInternet 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


Feb 3 '08 #1
1 5287
GS
someone told me this:

Public Sub New()

Me.InitializeComponent()
'Me.WebBrowser1.Navigate("http://www.microsoft.com")

svd = DirectCast(Me.WebBrowser1.ActiveXInstance, SHDocVw.WebBrowser)

AddHandler svd.NewWindow3, AddressOf Svd_NewWindow3
....
End sub

"GS" <gs**********************@msnews.Nomail.comwrote in message
news:ON**************@TK2MSFTNGP04.phx.gbl...
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 WebDevloperInternet 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


Mar 16 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Noozer | last post by:
I've got a WebBrowser control (AxBrowse - VCMAXB.DLL) and I'm having a few difficulties with it. Just looking for a few pointers, not whole solutions here. I've tried looking at the MSDN help files...
1
by: Tuong | last post by:
I have a situation where i have a form that contains a webbrowser control. With this I was able to implement an application that can browse websites. One particular website i visited opens up...
0
by: Gary Brown | last post by:
Hi, An upgrade to WebBrowser from axWebBrowser lost the NewWindow3 event. My online documentation and VS2005 don't list it for WebBrowser but internet documentation says it was added by SP2. ...
7
by: Dave Booker | last post by:
I am using a WebBrowser object in my .NET 2.0 application, but it is not shown to the user. Every time a timer event triggers it to perform a m_WebBrowser.Navigate() I get that classic IE 'click'...
5
by: mabond | last post by:
Hi recently read a posting and reply about Excel processs still running after the Appliction.Quit was called. Thought I might be able to use the same...
4
by: Robson Siqueira | last post by:
Folks, I am facing a problem. I am trying to manipulate the HTML data (thru the Document and DocumentText properties) of the WebBrowser object (System.Windows.Forms). The problem is that the...
5
by: kimiraikkonen | last post by:
Hi, I couldn't find a necessary class which shows when mouse hovers on a link in Webbrowser control. Think of there's a status bar(text), when mouse comes on a link, the URL must be shown in...
11
by: kimiraikkonen | last post by:
Hi there, I needed to use MouseOver event on Webbrowser which is NOT provided by webbrowser control natively(what a disappointment), so i decided to go with another route to simulate this like: ...
0
by: Ricky` | last post by:
Hi all, I'm using an axWebBrowser in my application. My problem is when an user submit a form that open a new window and send post data, beacuse with NewWindow3 i catch only the url. Any advice is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.