Hi
Based on my research, I think you may to add a COM reference to the dll
below from the ToolBox(just as you do with an ocx) and you will get the
AxWebBrowser.
c:\WINDOWS\system32\shdocvw.dll
And then you can use the Cor's suggestion that use the code below to add
fav.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate( _
"about
:<html><head></head>" & _
"<body onload=""javascript
:window.external.addFavorite('" & _
Me.AxWebBrowser1.LocationURL & _
"');""></body></html>" _
)
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Me.AxWebBrowser1.Navigate("www.google.com")
End Sub
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.