(item as WebView2).CoreWebView2.Navigate(url) įorm2 code: private void button1_Click(object sender, EventArgs e) String url = " await (item as WebView2).EnsureCoreWebView2Async(null) ![]() ![]() 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |