1.如何用vb得到网页的论坛论坛源代码
如何用vb得到网页的源代码
1 先加载网页:
Private Sub Form_Load()
WebBrowser1.Navigate "/question/.html"
End Sub
2 加载完成后取字符串到文本框:
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Dim doc As Object, objhtml As Object
Dim strhtml As String
On Error GoTo errorsub
Me.Caption = WebBrowser1.LocationName & " 加载完成"
If MaxWebNum <= 0 Then
Set doc = WebBrowser1.Document
Set objhtml = doc.body.createtextrange()
If Not IsNull(objhtml) Then
strhtml = WebBrowser1.Document.body.innertext
Text1.Text = strhtml
End If
End If
Exit Sub
errorsub:
Text1.Text = "错误!!源码源码易语言房产源码!论坛论坛打卡日历html源码"
源码源码致设计dz源码End Sub
源码源码致设计dz源码qgis 源码剖析
陕西咸阳:推进小作坊提档升级
福建:召回帝辉牌红红火火抽纸等3批次产品
大兴调查研究|黑龙江哈尔滨:“个转企一件事”系统上线试运行
音频素材源码_音频素材源码下载
全球最大超级“充电宝”,每年撬动600亿元投资