Results 1 to 6 of 6

Thread: [RESOLVED] Change variable and save for next opening of the program! Help!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Resolved [RESOLVED] Change variable and save for next opening of the program! Help!

    Im making a program for my mom. I need to know how to have a variable be saved to the program, then when the program is loaded again, it will have that variable's data loaded just like it was saved the last time. Please help me.
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  2. #2
    Member
    Join Date
    Jan 2010
    Posts
    48

    Re: Change variable and save for next opening of the program! Help!

    Google .cfg files for code there's a few great examples I use all the time

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: Change variable and save for next opening of the program! Help!

    I dont want another file, i just want it to save it within the program.
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  4. #4
    Member
    Join Date
    Jan 2010
    Posts
    48

    Re: Change variable and save for next opening of the program! Help!

    You could set up a registry key on a install then. But then the program's .exe can't be copied on to another machine and work.

  5. #5
    gibra
    Guest

    Re: Change variable and save for next opening of the program! Help!

    Quote Originally Posted by Gamemaster1494 View Post
    I dont want another file, i just want it to save it within the program.
    You can't!

    Because persistent information must be write to a File or to Registry.

    You can use SaveSettings() and GetSettings() VB methods to save and load into Registry any information you want make persistent.


  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: Change variable and save for next opening of the program! Help!

    Oh..... That stinks.... Ok. Thank you.
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

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