Steve_PP
8 months agoExperienced User
Re: C# WebBrowser -> WebView2 solution
CoreWebView2InitializationCompleted is a public event of WebView2 in the Microsoft.Web.WebView2.WinForms namespace. If your project is WinForms, you need to ascertain why your WebView2 class is not referencing Microsoft.Web.WebView2.WinForms.
Right-click on 'WebView2' on this line and click 'Go to definition'
var webView2 = new WebView2
You should end up looking at this file (scroll to the top.) Presumably you are not. You need to work out why. Recheck your references.