This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我有一个关于网络浏览器控件的问题,希望有人能回答。我正在研究一个使用 HTML 来显示和保存数据的文档检索和存储类。我想在使用 VB.Net 的 winforms 中使用 webbrowser 控件。我只想将字段值存储在 html 文档中,而不是整个文档中。我希望在 html 中使用标签并使用 Web 浏览器控件的 DOM 读取它们,但不知道如何执行此操作。
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If (pDisp Is WebBrowser1.object) Then
Label1.Caption = WebBrowser1.Document.All("myElem").innerHTML
End If
End Sub