I run a WebVIew demo on an old installation of Windows 10, and so the initialization error is triggered.
A dialog pops up saying.. "WebView2 Runtime is not installed correctly...etc". GlobalWebView2Loader.InitializationError is true and this same text exists in GlobalWebView2Loader.ErrorMessage. So with the ShowMessage(GlobalWebView2Loader.ErrorMessage) code in place, the text is shown twice.
Is it possible to not show the first/initial dialog?
Thanks
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Initialization Error dialog
- salvadordf
- Posts: 4374
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Initialization Error dialog
Set GlobalWebView2Loader.ShowMessageDlg to False before the GlobalWebView2Loader.StartWebView2 call or remove the showmessage call inside WVBrowser1InitializationError.