Private Sub Form_Load()
web1URL1 = "http://www.itpub.net/forumdisplay.php?s=&forumid=2&daysprune=30&sortorder=&sortfield=lastpost&perpage=25&pagenumber=1"
Web1.Navigate2 web1URL1End SubPrivate Sub Web1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If Not (pDisp Is Web1.Object) Then Exit Sub
Rtxt1.Text = URL
MsgBox URL
If URL = web1URL1 Then
MsgBox "11111"
End If
End Sub
就是这段代码,我用了几个语句监控是不是进入了这个Web1_DocumentComplete状态(Rtxt1.Text = URL,MsgBox URL和MsgBox "11111"),谁知没有一个语句起作用,不知为什么?
web1URL1 = "http://www.itpub.net/forumdisplay.php?s=&forumid=2&daysprune=30&sortorder=&sortfield=lastpost&perpage=25&pagenumber=1"
Web1.Navigate2 web1URL1End SubPrivate Sub Web1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If Not (pDisp Is Web1.Object) Then Exit Sub
Rtxt1.Text = URL
MsgBox URL
If URL = web1URL1 Then
MsgBox "11111"
End If
End Sub
就是这段代码,我用了几个语句监控是不是进入了这个Web1_DocumentComplete状态(Rtxt1.Text = URL,MsgBox URL和MsgBox "11111"),谁知没有一个语句起作用,不知为什么?
解决方案 »
- 接上面的第二个问题
- 有關DataGrid1_Click的問題(急救!)
- 求Winrar的VB代码
- 关于Barcode控件,急,百分相送
- 自动调整Grid各列列宽为最合适的宽度(再任意字体模式下)???
- 大家帮我看看..VBA的 一句添加复选框 并命名,错在哪
- 我想问问各位:怎么样在VB里生成一个新的WORD文件,也就是空的WORD文档。急急
- 在vb中怎样提取一个字符的bit位,怎样提取一个字符8位中的前六位??
- 从远程数据库查询批量数据插入本地临时表,如何快速完成
- 快来呀,共有1300分未送完,这次的要大送分了!!!
- 有没有能显示多幅图的图形控件,谢谢!!!
- 如何将1.exe和2.exe合并成一个3.exe,当运行3.exe时,实际是同时运行1.exe和2.exe
web1TempHtml = Web1.Document.body.innerhtml这类语句就出错了,错误号是91号怎么办?继续请教!
不知为什么Web1.ReadyState没有办法等于4?
请教!
In some cases, the ReadyState will remain interactive, such as a frame navigation is canceled, some error occured during loading, or the webbrowser control is hidden.
我总是没有办法捕捉到网页的READYSTATE_COMPLETE状态。没有办法采集这个网页的信息继续请教!谢谢先!