Originally Posted by
nay
also will i need to call the xml on form load?
Code:
ListBox1.Items.Clear()
UpdateList() ' this thread contains the code to load xml into listbox
then the update list is called
Code:
Public Sub UpdateList()
ListBox1.Items.Clear()
Dim xdoc As New Xml.XmlDocument
xdoc.Load("list.xml")
Dim titleNode As Xml.XmlNode = xdoc.Item("main")
Dim element As Xml.XmlElement
For Each element In titleNode
ListBox1.Items.Add(element.InnerText)
Next
End Sub
all of this was in the source code i just posted.