this codes adds all records in one line, how can i seperate these to have one line each?????
Code:Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click ListBox1.Items.Clear() Dim nlx As New System.IO.StreamReader("C:\Documents and Settings\Owner\Desktop\newslist.xml") 'XML reader Dim nx As New System.Xml.XmlTextReader(nlx) 'XML doc Dim nlxd As New System.Xml.XmlDocument nlxd.Load(nx) Dim dd As String = nlxd.InnerText Dim x As Integer For x = 1 To 10 ListBox1.Items.Add(dd) Next x End Sub




Reply With Quote