Using WebView2 control inside an ADXOlForm

Add-in Express™ Support Service
That's what is more important than anything else

Using WebView2 control inside an ADXOlForm
 
Steve Griffin




Posts: 17
Joined: 2009-03-01
Is it possible to use a WebView2 control inside ADXOlForm?

I have tried this, but I can only set the Source property of WebView2 in the designer, but not at runtime. The following code (called from the AddinModule as a test) results in nothing happening (the WebView2 control does not navigate). The WebView is inside InspectorPane (InspectorLayout = RightSubPane).


Sub TestWebView2()
        Dim CurrentForm As InspectorPane = Me.AdxOlFormsCollectionItem1.FormInstances(0)

        If Not IsNothing(CurrentForm) Then

            CurrentForm.WebView21.Source = New Uri("https://www.google.co.uk")

        End If

    End Sub
Posted 14 Sep, 2022 04:04:14 Top
Andrei Smolin


Add-in Express team


Posts: 18420
Joined: 2006-05-11
Hello Steve,

Our guys suggest that you try webView21.CoreWebView2.Navigate(...).

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 14 Sep, 2022 04:37:56 Top