Detect when webbrowser document is fully loaded |
Post Reply |
Author | |
DTeCH
Newbie Joined: 13 August 2009 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 01 June 2010 at 5:30pm |
Hi,
I'm trying to get the event of the webbrowser control that indicates it's fully loaded... ...after All iframes, & everything else in the browser document is done loading. Each frame in a document triggers cjBrowser1_DocumentComplete when it's done loading, so the following attempts to compare the frame that triggered DocumentComplete to the parent browser window. If it matches, then it will set xWebB3Done to True. I've tried : (xWebB3Done is set to False before cjBrowser1 navigates) Private Sub cjBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant) If (pDisp Is cjBrowser1.Object) Then xWebB3Done = True <================<< this is NEVER hit no matter what. ' Finished Loading Else ' Do nothing End If End Sub cjBrowser1_DocumentComplete is fired several times during a single page load. pDisp say's it's "Microsoft Web Browser Control" at each, & every firing of a single page load. What else can I do? (VB6 on Vista) |
|
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 |