Welcome Guest Search | Active Topics | Sign In | Register

Searching for example Options
Posted: Tuesday, April 23, 2024 5:45:59 AM
Rank: Newbie
Groups: Member

Joined: 4/22/2024
Posts: 7

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
'Load Google's home page into the WebView
m_WebView.Url = "www.miosito.it/clienti.aspx"

End Sub
End Class
Posted: Wednesday, April 24, 2024 10:35:08 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,133

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.