Results 1 to 2 of 2

Thread: affecting control properties while in run time.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    28
    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.

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    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...


    Mark
    -------------------

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