Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Having access to the browser object in DLL
Message
From
11/04/2006 22:15:20
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Having access to the browser object in DLL
Miscellaneous
Thread ID:
01112761
Message ID:
01112761
Views:
49
In an application, I have an event defined like this:
    Private Sub WebBrowserErrorBeforeNavigate2(ByVal sender As System.Object, _
     ByVal e As AxSHDocVw.DWebBrowserEvents2_BeforeNavigate2Event) Handles WebBrowserError.BeforeNavigate2
        Dim loBrowserUrl As Framework.BrowserUrl = New Framework.BrowserUrl
        loBrowserUrl.GetUrl(e)
    End Sub
This event is calling a method of a class which is located in the Framework.dll. This method is like this:
Public Class BrowserUrl

    Public lBrowser As Boolean = False
    Public nOperation As Integer = 0

    ' Get the Url
    Public Function GetUrl(ByVal toBrowserEvent As AxSHDocVw.DWebBrowserEvents2_BeforeNavigate2Event) As Boolean
    End Function

End Class
However, I have Type 'AxSHDocVw.DWebBrowserEvents2_BeforeNavigate2Event' is not defined.

How should I define this parameter so I can pass a browser event?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform