Loading ListView through TXT File

trevorkavanaugh

New member
Joined
Sep 17, 2008
Messages
1
Programming Experience
Beginner
Hello,

My code includes a function to create a text file and save the ListView information in it, but I do not understand how to make it load the information on start up.

Anyone have an idea on how to achieve this?

All help is greatly appreciated.
 
i think it must be easy to add some information in a listview ,
VB.NET:
   Dim stream As StreamReader
        stream = New StreamReader("c\:mh.txt") ' your file location 
       While Stream.Peek > -1
            mal = stream.ReadLine
listview1.items.add(mal)
end while
i think you can manipulate this code to make your own favorite style of Listview groups & columns
have nice day
 
i think it must be easy to add some information in a listview ,
VB.NET:
   Dim stream As StreamReader
        stream = New StreamReader("c\:mh.txt") ' your file location 
       While Stream.Peek > -1
            mal = stream.ReadLine
listview1.items.add(mal)
end while
i think you can manipulate this code to make your own favorite style of Listview groups & columns
have nice day
You forgot to declare the "mal"
Declar it like this

Dim mal As String
Because mal = stream.ReadLine is a String ;)
 
ok :) :D

You can also add specified line and split it by lets say " " space. And add every word between "space" gets to it's own column from a textfile.

Sorry for my bad english...
 
Back
Top