|
-
Jan 14th, 2008, 02:27 PM
#1
Thread Starter
Frenzied Member
-
Jan 15th, 2008, 03:15 AM
#2
Re: WebBrowser Events
I've been playing with WebBrowser as a result of another thread, you may find it interesting: http://www.vbforums.com/showthread.php?t=504545 as far as the DocumentComplete event is concerned. As to the DownLoadBegin and Complete activity, I don't see that happening.
-
Jan 15th, 2008, 04:43 AM
#3
Thread Starter
Frenzied Member
-
Jan 15th, 2008, 04:51 AM
#4
Re: WebBrowser Events
No, I don't see those events triggering when I hover the mouse over the Internet.com menu items.
When navigating to the home page of this site using http://www.vbforums.com/ two http requests are actually generated so there will be two DownLoadBegin and DownLoadComplete events. (Plus 2 of most of the other events associated with navigation)
The code I posted in the thread referenced earlier uses the WebBrowser control to demonstrate - perhaps you could try it and see.
-
Jan 16th, 2008, 01:04 AM
#5
Thread Starter
Frenzied Member
-
Jan 16th, 2008, 01:15 AM
#6
Re: WebBrowser Events
Past experience with writing 'screen-scraping' applications and having long nights wondering why sometimes the DocumentComplete event seemed to trigger to early. I still haven't found a 100% reliable method of determining when the Document requested is loaded properly.
Using in-line Error Handling is probably the easiest circumvention, check if an Error of "Object Variable with Block Variable Not Set" is returned, if it is then go round a loop until it isn't, if there isn't an error then you know the Document is ready.
Whenever I start out on these types of Applications I usually go through the process of 'debug.print'ing the output from the Navigation events for the particular pages I'm interested in (as per that code I posted in the other thread) so I have a reasonable idea of what I'm up against.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|