Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27417

VS 2010 Help with GetAttribute()

$
0
0
Having an issue for when I get an attribute and put into a list box.

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

The return value = mshtml.HTMLInputElementClass and not the actual value.

How can I get the actual value? All help will be appreciated, thank you.

Viewing all articles
Browse latest Browse all 27417

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>