Results 1 to 6 of 6

Thread: [Resolved] Listview Saving help! [VS2005]

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2004
    Location
    uk
    Posts
    39

    Resolved [Resolved] Listview Saving help! [VS2005]

    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:
    1. saveFileDialog1 = new SaveFileDialog();
    2.             saveFileDialog1.Filter = "txt files (*.txt)|*.txt";
    3.             saveFileDialog1.Title = "Save Text File";                        saveFileDialog1.ShowDialog();
    4.  
    5.             if (saveFileDialog1.FileName != "")
    6.             {
    7.                 System.IO.StreamWriter file = new System.IO.StreamWriter(saveFileDialog1.FileName);
    8.                 file.WriteLine(listview1.Items);
    9.                 file.Close();
    10.             }
    11.         }
    Last edited by sk|Lance; Oct 9th, 2006 at 02:17 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width