|
-
May 1st, 2000, 02:08 PM
#1
Thread Starter
Junior Member
I think this is a relatively simple question. I've had no formal training in vb, so the answer may be right in front of me, but... I would like for a user to be able to add items to a list box, and have them stay there. I know how to do this with the "list.additem()" command, but the items don't stay in the list after the program ends. I basically want the combo/list box to "remember" what the user put in it after the program ends.
-
May 1st, 2000, 06:02 PM
#2
Frenzied Member
You'll need to save the new entries somwhere and reload them next time the program is run.
The simplest way would be to write the contents of the list box to a text file - one item per line, when the program closes.
Alternatively, if there is only going to be a fairly small amount of data you could use the registry.
...or use a database...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|