Hi Harold,
Where are you doing the WriteLine statements? They should probably all be in the form's Closing event handler so they all come together.
If you're writing the values into a text file (I suspect you are), then you can open the file in WordPad or NotePad to see what's in there and determine whether the writing part is working.
Then the reading should all be in the form's Load event handler.
What are you trying to save for the ListView? The currently selected item? If so, I would write and read the values in the SelectedIndices collection. They're numbers so you might need to read them as strings and then use CInt to convert them into integers before using them.
Let me know what you're trying to do with the ListView and I'll try to provide more detail if you need it.
|