Results 1 to 4 of 4

Thread: [RESOLVED] Remember program

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    91

    Resolved [RESOLVED] Remember program

    Hi, I'm developing a program and i need my program to remember settings people have done, how can this be done?
    What i mean is, if i let the user set the background color to green, close the program and it'll remember "Aha green background"

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Remember program

    There are several ways: before the app closes, store/update the settings to a database, registry or file, like an INI file. When the app opens, retrieve the settings and apply them as needed. Here is an example of reading/writing INI files within the FAQ's section of the forum.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    Hyperactive Member Teseng's Avatar
    Join Date
    Sep 2007
    Location
    Tupelo, MS
    Posts
    281

    Re: Remember program

    Outputting settings to a file is the most common way, search reading and writing of text files.

    -EDIT-

    5 seconds too late, LaVolpe gave better info than me!

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    91

    Re: Remember program

    Thank you very much, you guys!

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