Hi,
i am trying to get it so i can save the information from a listview to a textfile but i am stuck on how to get the 2 columns 1 being time and the other one being Events to write to the text file. Can anyone please help me this is how far i have got so far.
VB Code:
saveFileDialog1 = new SaveFileDialog(); saveFileDialog1.Filter = "txt files (*.txt)|*.txt"; saveFileDialog1.Title = "Save Text File"; saveFileDialog1.ShowDialog(); if (saveFileDialog1.FileName != "") { System.IO.StreamWriter file = new System.IO.StreamWriter(saveFileDialog1.FileName); file.WriteLine(listview1.Items); file.Close(); } }




Reply With Quote