You'll notice that I've commented out e.NewWindow = ((Form1)s).webView2.CoreWebView2 in CoreWebView2_NewWindowRequested. You didn't go into much detail about what you're trying to accomplish, so the modified code is only slightly modified and may not perform as desired. ![]() You need to initialize CoreWebView2 before using it by calling "EnsureCoreWebView2Async" as specified in Getting started with WebView2 in Windows Forms apps (Preview). One error I noticed was "The group or resource is not in the correct state to perform the requested operation. ![]() ![]() You didn't specify what error you received.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |