joshuadeboer
Well-known member
Hi,
I need some help on saving all listview items on shutdown.
Josh
I need some help on saving all listview items on shutdown.
Josh
Dim outputstream As StreamWriter = File.CreateText("C:\test.txt")
Dim s As Short
Dim newstr(::number of columns::) As String
Dim I As Integer
Dim column1 As String
Dim column As String
Dim ItemCount As String
ItemCount = ListView1.Items.Count
For I = 0 To ItemCount - 1
For s = 0 To ::number of columns::
newstr(s) = ListView1.Items.Item(I).SubItems(s).Text
Next
column1 = newstr(0)
column2 = newstr(1)
outputstream.WriteLine(column1 & "|" & column2)
Next I
outputstream.Close()