If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Tapatalk is supported by this forum for browsing with your smartphone (iPhone, Android, BB, Nokia). Click here for details.

Dim file_name As String = "c:\Test.txt"
Try
Dim objWriter As New System.IO.StreamWriter(file_name)
For Each item In ListBox2.Items
objWriter.WriteLine(item.ToString)
Next
objWriter.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Bob do you have time for another question...
...If I send that file_name to the listbox on a different form (I can do this part) when I select the index how can I pull up the file in the texbox1 (just below the listbox)? Opps I might have found it... it seems to work, will have to try it with more than 1 file in the listbox later...