silentwolf
Active member
- Local time
- Today, 15:32
- Joined
- Jun 12, 2009
- Messages
- 644
Hi guys,
I am just trying out a webbrowser control in a form.
when I open the form I get a script Error Message or better to say a few three or four messages..
What does that mean and what do I need to change to prevent this kind of Errors?
Is it in regards to the website I try to open?
P.S. It was not this website ;-)
Many thanks
I am just trying out a webbrowser control in a form.
Code:
Dim WithEvents objWebbrowser As WebBrowser
'
Private Sub cmdLoad_Click()
'Eine Internetseite lesen
objWebbrowser.Navigate "https://www.access-programmers.co.uk"
End Sub
Private Sub ctlWebbrowser_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
'Wenn fergiggeladen, Meldung ausgeben
MsgBox objWebbrowser.LocationURL
End Sub
Private Sub Form_Open(Cancel As Integer)
'Zuweisung des Objektverweises beim Öffnen des Formulares
Set objWebbrowser = Me!ctlWebbrowser.Object
End Sub
Private Sub Form_Close()
'Zerstören des Objektverweises beim Schließen
Set objWebbrowser = Nothing
End Sub
when I open the form I get a script Error Message or better to say a few three or four messages..
What does that mean and what do I need to change to prevent this kind of Errors?
Is it in regards to the website I try to open?
P.S. It was not this website ;-)
Many thanks