Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42225

How to use new window 3 event for regualr webbrowser, not microsoft web browser.

$
0
0
I was forced to use a microsoft web browser (AxWebBrowser) because I needed to use the new window 2 event. Is there any way to use the new window 2 event in a regular web browser? thanks. I really want to make something like this, but not in "AxWebBrowser1" but "WebBrowser1"

Code:

Private Sub AxWebBrowser_NewWindow3(ByVal sender As Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_NewWindow2Event)
        e.ppDisp = Form2.AxWebBrowser1.Application
        Form2.Visible = True
    End Sub

I know you can get the "href" element in a regular web browser, but when clicking on images or buttons, I get redirected to a blank page. I will be extremely pleased if someone figures out how to do this. Thanks :)

Viewing all articles
Browse latest Browse all 42225

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>