1,105,254 Community Members

Change Textbox to Listbox.

Member Avatar
pjns19
Newbie Poster
10 posts since Feb 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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
Question Self-Answered as of 1 Year Ago
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article