pjns19 0 Newbie Poster

Hi,

I was to change the following code so it uses a LISTBOX1 instead of imagetxt.text which is a textbox.

Each attribute needs to go into a new line. if thats possible?

Thanks.

    Dim PageElements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("img")
    For Each CurElement As HtmlElement In PageElements
        imagestxt.Text = imagestxt.Text & CurElement.GetAttribute("src") & Environment.NewLine
    Next