download webview sdk *.nupkg
you can find:
webview.tlb , WebView2.idl WebView2Loader.dll
https://globalcdn.nuget.org/packages....1774.30.nupkg
https://learn.microsoft.com/en-us/mi...s=dotnetcsharp
rename as zip file,unzip
---------------
This is just a simple example to open a URL. More can be done with TLB files or better dynamic lightweight COM interfaces.
Code:If CreateCoreWebView2EnvironmentWithOptions(strptr(""), strptr(""), 0&, ObjPtr(WebCompletedHandler)) <> S_OK Then MessageBox 0, "Failed to create environment", "Error", 0 Else Form1.Caption = "New Webview OK" End If




Reply With Quote