Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Problem with the Webbrowser Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with the Webbrowser Control

 Post Reply Post Reply
Author
Message
ProScan View Drop Down
Groupie
Groupie


Joined: 07 March 2011
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProScan Quote  Post ReplyReply Direct Link To This Post Topic: Problem with the Webbrowser Control
    Posted: 18 March 2011 at 7:49am
Hello...

I have 2 Forms for a simple Test..

Form1: works with the MS Browser Control shdocvw.dll
Form2: works with the Codejock Browser Control

When i start then Form1, i load a simpe Website with Frames.
in the DocumentComplete event i have the pDisp Object to look, is the
Framewebsite complete for load.

Form1: with MS Browser

Private Sub Browser_DocumentComplete(ByVal pDisp As Object, URL As Variant)

    If (pDisp Is Browser.Object) Then
        If InStr(1, URL, "testsite.html") > 0 Then
            MsgBox "Site comlete !
        End If
    End If

    '- WORKS PERFECT -

End Sub


  
Form2: with Codejock Browser

Private Sub Browser_DocumentComplete(ByVal pDisp As Object, URL As Variant)

     If (pDisp Is Browser.Object) Then
        If InStr(1, URL, "testsite.html") > 0 Then
            MsgBox "Site comlete !
        End If
    End If

   '- Works not !!!! -> The pDisp Object is not the Browser.Object

End Sub

with this routine and the codejock Browser i can't check a special site..

any idears ???

Greetings

ProScan

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2011 at 8:43am
Use Application property in both cases

Private Sub WebBrowser2_DocumentComplete(ByVal pDisp As Object, URL As Variant)

    If (pDisp Is WebBrowser2.Application) Then
        If InStr(1, URL, "testsite.html") > 0 Then
            MsgBox "Site comlete !"
        End If
    End If

    '- WORKS PERFECT -

End Sub

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ProScan View Drop Down
Groupie
Groupie


Joined: 07 March 2011
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProScan Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2011 at 8:52am
Hello oleg,
thanks for help, it work's !

Proscan
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.