Save Listbox To Text
Hey guys had alook around on the net on how to save the text in a listbox to a txt file. But I can't seem to get it to work the txt file just comes up blank, heres the code im using maybe someone knows a better way. Thanks
Code:
Dim SaveFile As New SaveFileDialog
SaveFile.FileName = "Protection Log"
SaveFile.Filter = "Text Files (*.txt)|*.txt"
SaveFile.Title = "Save"
SaveFile.ShowDialog()
Try
Dim Write As New System****.StreamWriter(SaveFile.FileName)
Write.Write(ListBox3.Items)
Write.Close()
Catch ex As Exception
End Try
