Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From a Web Browser control HTML button to form object
Message
From
22/01/2005 19:29:21
 
 
To
22/01/2005 18:09:28
General information
Forum:
ASP.NET
Category:
Web control library
Miscellaneous
Thread ID:
00979700
Message ID:
00979718
Views:
11
The following approach was described in the Visual FoxPro forum. Basically, it's a question of intercepting the browser before it navigates and recognizing a specific URL.
    Private Sub WebBrowserErrorBeforeNavigate2(ByVal sender As System.Object, _
     ByVal e As AxSHDocVw.DWebBrowserEvents2_BeforeNavigate2Event) Handles WebBrowserError.BeforeNavigate2
        Dim lcUrl As String
        Dim lnOperation As Integer
        Dim lcLast As String
        Dim lnPrimaryKey As Integer
        lcUrl = e.uRL
        lcLast = Mid(lcUrl, lcUrl.LastIndexOf("\") + 2)
        If lcLast.StartsWith("LX") Then
            e.cancel = True
            lnOperation = Val(Mid(lcLast, 3, 1))
            lnPrimaryKey = Val(Mid(lcLast, 4))
            If lnOperation = 1 Then
                Dim loForm As New ErrorDetail
                loForm.ShowDialog()
            End If
            If lnOperation = 2 Then
            End If
        End If
    End Sub
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
Previous
Reply
Map
View

Click here to load this message in the networking platform