code_junkie

Webbrowser control's window.external is ALWAYS null

Nov 14th, 2011
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Option Strict Off
  2.  
  3. Public Class Form1
  4. Private Sub Form1_Load()
  5. Handles MyBase.LoadMe.WebBrowser1.Document.Window.DomWindow.External.AddFavorite("http://www.google.com")
  6. End Sub
  7. End Class
  8.  
  9. [PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
  10. [ComVisible(true)]
Add Comment
Please, Sign In to add comment