AxWebBrowser in windows form NewWindow2() event

G

Guest

Hello, I am trying to provide a handler for the NewWindow2() event in this
windows forms application. Here is the handler:
Private Sub wbrPOS_NewWindow2(ByVal sender As Object, ByVal e As
AxSHDocVw.DWebBrowserEvents2_NewWindow2Event) Handles wbrPOS.NewWindow2
Dim frmPopUpCatcher As New frmBrowse2
frmPopUpCatcher.wbrPOS2.RegisterAsBrowser = True
e.ppDisp = wbrPOS.Application
frmPopUpCatcher.ShowDialog()
End Sub

The window.open() happens on frmBrowse (I am trying to use a second form
here) trying to get away from running the form load event for the first form
since a lot of authentication info is being passed in there. So far, nothing
shows in my new window. I saw the support document on how to implement this.
Tried that to no result. Any help/suggestion appreciated. Thanks.
 
C

Cor Ligthert

Sergiu,

This events starts when inside this window a new window is created (popup).
However now it is that a part of IE itself so probably will that be blocked
now.

Just a guess

Cor
 
G

Guest

the new window that is triggered by the newwindow2() event just seems to be
empty on return. It is not being blocked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top