Drstein99 Posted January 6, 2004 Posted January 6, 2004 I'm using a webbrowser object to scan the entire text on a range of website's for specific keywords (from a list of items in a listbox). I use "webbrowser1.document.innertext" as the text to scan. I'm having trouble figuring out what event is called when the page is OFFICIALLY done loading. There is a downloadComplete event, and a documentComplete event... I'm a little lost. My question is: What event should I be using, to signal that the webbrowser.navigate("url") process is completely done loading? Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
TDQWERTY Posted February 2, 2004 Posted February 2, 2004 Very Simple d00d: WebBrowser1.Navigate "YourHtmlOrAddress" Do While WebBrowser1.Busy = True DoEvents Loop MsgBox WebBrowser1.Document.body.innerText Quote
Drstein99 Posted February 2, 2004 Author Posted February 2, 2004 This information is helpful. I wish you were around 1 month ago when I originally posted, I've since found a solution. I'm finding the help for webrowser object pretty limited in msdn for some reason. This function is still helpful in the future though, thanks. Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
TDQWERTY Posted February 3, 2004 Posted February 3, 2004 NoProblem, anytime... Pm me if u need something more. I'm working also with webbrowser stuff. Quote
Drstein99 Posted February 3, 2004 Author Posted February 3, 2004 Thanks. Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
Leaders dynamic_sysop Posted February 3, 2004 Leaders Posted February 3, 2004 if you put your code like this .... WebBrowser1.Document.body.innerText '/// if Option Strict is set to On , you will get an error. if Option Strict is set to On , you will get an error. this is because you are trying to use " Late Binding " Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.