Having an issue for when I get an attribute and put into a list box.
Code:
The return value = mshtml.HTMLInputElementClass and not the actual value.
How can I get the actual value? All help will be appreciated, thank you.
Code:
Code:
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
Dim PageElements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("Form")
For Each CurElement As HtmlElement In PageElements
ListBox1.Items.Add(CurElement.GetAttribute("action"))
Next
End Sub
How can I get the actual value? All help will be appreciated, thank you.