Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Webview2-Control (Microsoft-Edge) as a replacement for Internet Explorer Control 15 Sep 2022 14:47 #23851

  • ArneOrtlinghaus
  • ArneOrtlinghaus's Avatar
  • Topic Author


  • Posts: 337
  • We have succeeded integrating the Webview2-Control in X# both with the VO-GUI-classes and with Winforms. Google has announced that they want to block Google Maps in Internet Explorer from end of November. Therefore it is important for us.

    -Every client computer must install the Runtime.
    We have decided to use the "WebView2 - Evergreen Runtime". This is automatically updated together with Windows Updates after the first installation.
    docs.microsoft.com/en-us/microsoft-edge/...me-distribution-mode
    docs.microsoft.com/en-us/microsoft-edge/...me-distribution-mode

    The installation program can be found under:
    go.microsoft.com/fwlink/p/?LinkId=2124703

    - Attached is MultiMediaControlvogui.zip is the code for the VO-GUI that works together with WebView2 and Internet Explorer Control. The code is not so complicated. The Winforms control behaves similar to the Internet Explorer Control. The correct delivery is more important:
    - Every execution directory (the exe files/dlls) must contain files as in the attachment MicrosoftWebWebView2execompilefiles.zip.
    - The two Microsoft.Web.WebView2.WinForms.dll and Microsoft.Web.WebView2.Core.dll in the same directory
    - The file WebView2Loader.dll must be exactly in the subdirectories as in the zip file.
    - In the own assembly a reference to the Microsoft.Web.WebView2.WinForms.dll must be added.

    The code for creating the object is in a "old-fashioned" manner using Callclipfunc and typeless objects. I have made this intentionally. So the asssembly is loaded also if the runtime files Microsoft.Web.WebView2.WinForms.dll and Microsoft.Web.WebView2.Core.dll in the execution directory are missing or cannot be loaded.

    Arne

    Please Log in or Create an account to join the conversation.

    Last edit: by ArneOrtlinghaus.
    • Page:
    • 1