Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Sub SuppressScriptErrorsOnly(ByVal browser As WebBrowser)
- AddHandler browser.DocumentCompleted, _
- AddressOf browser_DocumentCompleted
- End Sub
- Private Sub browser_DocumentCompleted(ByVal sender As Object, _
- ByVal e As WebBrowserDocumentCompletedEventArgs)
- AddHandler CType(sender, WebBrowser).Document.Window.Error, _
- AddressOf Window_Error
- End Sub
- Private Sub Window_Error(ByVal sender As Object, _
- ByVal e As HtmlElementErrorEventArgs)
- e.Handled = True
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement