advicejae.blogg.se

Microsoft edge webview2 runtime error
Microsoft edge webview2 runtime error




microsoft edge webview2 runtime error

If you are saying that the above example is working fine with the newly created. Note: The logic will remain the same even if you try to access the webView2 in the class from another project. (item as WebView2).CoreWebView2.Navigate(url) įorm2 code: private void button1_Click(object sender, EventArgs e)

microsoft edge webview2 runtime error

String url = " await (item as WebView2).EnsureCoreWebView2Async(null)

microsoft edge webview2 runtime error

Public async Task abcAsync(string formname, string name)įorm form = (Form)Application.OpenForms We will click the button to launch the Form2.įurther, we will click the button on Form2 that we call the method from class to initialize the webView2. Your previous comment, I understand that you are trying to initialize the webView2 from the class file.įorm1 contains the button and webView2.






Microsoft edge webview2 runtime error