I try to storage from listbox the Items Collection in a file... but i don't have any idea how to do this. Can somebody help me. :confused:
Printable View
I try to storage from listbox the Items Collection in a file... but i don't have any idea how to do this. Can somebody help me. :confused:
Dim SW as StreamWriter
Dim FS as FileStream
FS=New FileStream("C:\Items.txt", FileMode.Create)
SW=New StreamWriter(FS)
Dim itm as Object
For Each itm In Listbox1.Items
SW.WriteLine(itm.ToString)
Next
SW.Close
FS.Close
--------------
Hope to help ;)
Example here also :
http://www.vbforums.com/showthread.p...hreadid=242778