Code:
SaveFileDialog1.ShowDialog()
Dim saver As New System.IO.StreamWriter(SaveFileDialog1.FileName)
ListBox1.SelectionMode = SelectionMode.MultiExtended
For i = 0 To ListBox1.Items.Count - 1
ListBox1.SetSelected(i, True)
saver.Write(ListBox1.Items(i))
Next
saver.Close()
This Is my code to save a file of a listbox but when i open it, it just put me all together
Code:
(File1File2File2File4...)
and I want it makes
Code:
File1
File2
File3
File4
And also I have an problem I need to make when u click a item of Listbox1 its also selected on lsitbox2
thanks