Rank: Newbie Groups: Member
Joined: 4/22/2024 Posts: 7
|
Hello
i implemented in vb.net webbrowser1 EO succesfully
i cannot get fire beforeDonwload event, i ask if some example of vb firing beforedownload event or what im wrong in my code, msg box not appear just download starts
here my code:
Imports System.Net Imports System.ComponentModel Imports EO
Public Class Form1 Private m_WebView As New EO.WebBrowser.WebView Public Event BeforeDownload As EO.WebBrowser.BeforeDownloadHandler Public Class RaisesEvent Public Event BeforeDownload As EO.WebBrowser.beforedownload Dim WithEvents happenObj As New RaisesEvent Public Sub ProcessHappen() Handles happenObj.BeforeDownload MsgBox("download is starting") End Sub End Class
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load 'Initialize the WebView using the PictureBox's window handle m_WebView.Create(PictureBox1.Handle) 'Load Google's home page into the WebView m_WebView.Url = "www.miosito.it/clienti.aspx"
End Sub End Class
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
|