hello
save each selecteditem into a text file
not save all items in the listbox
only the item u want
this code will save all items , but i want only save items that u selected it . into same text file
Thanks
jackie
save each selecteditem into a text file
not save all items in the listbox
only the item u want
this code will save all items , but i want only save items that u selected it . into same text file
VB.NET:
Dim i As Integer
w = New IO.StreamWriter("e:\test.txt")
For i = 0 To ListBox1.Items.Count - 1
'w.WriteLine(ListBox1.SelectedItem(i))
w.WriteLine(ListBox1.Items.Item(i))
Next
w.Close()
jackie