Rank: Member Groups: Member
Joined: 9/1/2015 Posts: 23
|
I've been getting the occasional blank screen with the error about Webview has already been destroyed. I've implemented the webview closed event and discovered that it's a render crash. I can't duplicate it on command so I'd like to try and restart the browser but the screen still stays blank. Below is my code trying to restart, am I missing something?
Private Sub WebView1_Closed(sender As Object, e As WebViewClosedEventArgs) Handles WebView1.Closed Try If e.Reason <> WebViewCloseReason.Normal Then WebView1 = New WebView 'Custom function to build url and call Load Request mNavigatePro() End If Catch ex As Exception 'log exceptions End Try End Sub
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
If you use WebControl in your Window/Form, you should set the WebControl's WebView property to the new WebView.
Thanks!
|