Hi There!
I'm working with application for adding contacts using Visual Basic 2012. The application have textboxes to add data, control buttons and ListView to display contents in columns. I want to save the information in listView box where a user click save button and savedialogbox open in order to choose file path. I'm unable to get it right with the code I wrote and it's as follows:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim iSave As New SaveFileDialog
iSave.Filter = "txt Files (*.txt) |*.txt"
iSave.FilterIndex = 2
iSave.RestoreDirectory = False
If iSave.ShowDialog() = Windows.Forms.DialogResult.OK Then
IO.File.WriteAllText(iSave.FileName, ListViewItemCollection)
End If