Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,089 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,793 people online right now. Registration is fast and FREE... Join Now!




fill column(1) from listview with textfile

 
Reply to this topicStart new topic

fill column(1) from listview with textfile

IDIS
13 May, 2008 - 01:39 AM
Post #1

New D.I.C Head
*

Joined: 30 Apr, 2008
Posts: 13

Hello,

With this code i can fill listview1 first column but how to fil second?

CODE
Private Sub Read_XML()
        Dim XMLReader As Xml.XmlReader
        XMLReader = New Xml.XmlTextReader("List.xml")

    

        While XMLReader.Read
            Select Case XMLReader.NodeType
                Case Xml.XmlNodeType.Element
                    If XMLReader.AttributeCount > 0 Then
                        While XMLReader.MoveToNextAttribute
                            If XMLReader.Name = "File" Then
                            
                                ListView1.Items.Add(XMLReader.Value)

                            ElseIf XMLReader.Name = "Title" Then
                                'how to put title in column(1)????
                                ListView1.Items.Add(XMLReader.Value)



                            Else
                            End If
                        End While
                    End If
            End Select
        End While
        XMLReader.Close()
    End Sub

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 11:58PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month