Hello im making this xml reader that outputs links to listbox, the xml code is like this.

<item>
        <title>file1</title>
        <category>myfiles</category>
        <link>http://google.com</link>
        </item>
<item>
        <title>file2</title>
        <category>myfiles</category>
        <link>http://yahoo.com</link>
        </item>

My code looks like this, it works but i would like that i could click the File1 in listbox and it would work like link.
now i just outputs like this. "file1myfileshttp://google.com"

 Private Sub Label3_Click(sender As Object, e As EventArgs) Handles Label3.Click

        ListBox2.Items.Clear()
            Dim doc As New System.Xml.XmlDocument
        doc.Load("http://mysite.com/myxml.xml")

        Dim List = doc.GetElementsByTagName("item")
        For Each item As System.Xml.XmlElement In List

            ListBox2.Items.Add(item.InnerText)

        Next



    End Sub

Use a DataGridView

Could you link some example? i could find anything

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.