🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.envbeh-l
Article #31

vb webbrowser control,how to know it is complete loading

#31
From: ts1
Date: Fri, 07 Sep 2001 23:41
21 lines
1365 bytes
I am thinking to use webbrowser control to get the web info, I don't want to use inet control.

but it seems when I click run, error "run-time error'91'" appear.

I click debug and retry , it's ok, seems like webbrowser collecting source from www.msn.com, if not complete, it got error to execute webbrowser1.document.body.innerhtml.

is there any way to know webbrowser complete browsing and execute next command.

thanks

please email to ts1@zaobao.com


Option Explicit
Dim strhtml As String

Private Sub Form_Load()
WebBrowser1.Navigate2 "http://www.msn.com"
strhtml = WebBrowser1.Document.body.innerhtml
Text1.Text = strhtml
End Sub
Technical Details
Message-ID: <3b988804$1@news.starhub.net.sg>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!cw-insnet-peer-00!newsvr.starhub.net.sg!news.starhub.net.sg!202.156.73.43

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1112ac,fbff208c8d916d8,start
X-Google-Attributes: gid1112ac,public
X-Google-ArrivalTime: 2001-09-07 01:40:40 PST
From: ts1@zaobao.com
Newsgroups: bit.listserv.envbeh-l
Date: Fri, 07 Sep 2001 16:41:39 PDT
Subject: vb webbrowser control,how to know it is complete loading
Organization: ts1@zaobao.com
NNTP-Posting-Host: 202.156.73.43
Message-ID: <3b988804$1@news.starhub.net.sg>
X-Trace: 7 Sep 2001 16:40:36 +0800, 202.156.73.43
Lines: 22
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!cw-insnet-peer-00!newsvr.starhub.net.sg!news.starhub.net.sg!202.156.73.43