Saving list box contents
C#
3
Posts
3
Posters
0
Views
1
Watching
-
Hi! How do I save the contents of a list box, so that when the user shuts down the program, they click a button called save and the next time they open it, it is still there?
-
Hi! How do I save the contents of a list box, so that when the user shuts down the program, they click a button called save and the next time they open it, it is still there?
It would be REAL handy to know what type of application you're talking about, but I'm assuming a Windows app. Generally it would be really easy to save the contents to a small XML file, then at startup check to see if that file is present. If it is, put the contents back in the listbox, and if not, it would be empty. HTH WhiteWizard aka Gandalf