Page 1 of 1

Initialization Error dialog

Posted: Mon Jul 22, 2024 6:43 pm
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

Re: Initialization Error dialog

Posted: Tue Jul 23, 2024 7:19 am
by salvadordf
Set GlobalWebView2Loader.ShowMessageDlg to False before the GlobalWebView2Loader.StartWebView2 call or remove the showmessage call inside WVBrowser1InitializationError.

Re: Initialization Error dialog

Posted: Tue Jul 23, 2024 11:21 am
by RaelB
Thanks :)