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

Post Reply
RaelB
Posts: 26
Joined: Sun Feb 12, 2017 11:22 am

Initialization Error dialog

Post by RaelB »

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
User avatar
salvadordf
Posts: 4304
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Initialization Error dialog

Post by salvadordf »

Set GlobalWebView2Loader.ShowMessageDlg to False before the GlobalWebView2Loader.StartWebView2 call or remove the showmessage call inside WVBrowser1InitializationError.
RaelB
Posts: 26
Joined: Sun Feb 12, 2017 11:22 am

Re: Initialization Error dialog

Post by RaelB »

Thanks :)
Post Reply