Start New Discussion within our Software Development Community


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?


    Dim PageElements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("img")
    For Each CurElement As HtmlElement In PageElements
        imagestxt.Text = imagestxt.Text & CurElement.GetAttribute("src") & Environment.NewLine
This question has already been answered. Start a new discussion instead.