Advertisement
GAMELASTER

Untitled

Dec 25th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub SuppressScriptErrorsOnly(ByVal browser As WebBrowser)
  2.  
  3.     AddHandler browser.DocumentCompleted, _
  4.         AddressOf browser_DocumentCompleted
  5.  
  6. End Sub
  7.  
  8. Private Sub browser_DocumentCompleted(ByVal sender As Object, _
  9. ByVal e As WebBrowserDocumentCompletedEventArgs)
  10.  
  11.     AddHandler CType(sender, WebBrowser).Document.Window.Error, _
  12.         AddressOf Window_Error
  13.  
  14. End Sub
  15.  
  16. Private Sub Window_Error(ByVal sender As Object, _
  17.     ByVal e As HtmlElementErrorEventArgs)
  18.  
  19.     e.Handled = True
  20.  
  21. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement