Problem with the Webbrowser Control |
Post Reply |
Author | |
ProScan
Groupie Joined: 07 March 2011 Status: Offline Points: 16 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
ProScan
Groupie Joined: 07 March 2011 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
Hello oleg,
thanks for help, it work's ! Proscan |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |