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