Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From a Web Browser control HTML button to form object
Message
De
22/01/2005 19:29:21
 
 
À
22/01/2005 18:09:28
Information générale
Forum:
ASP.NET
Catégorie:
Librairie contrôle Web
Divers
Thread ID:
00979700
Message ID:
00979718
Vues:
10
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform