Results 1 to 3 of 3

Thread: Saving to registry..........

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    Saving to registry..........

    I need to save some very simple things in my program to the registry. Can someone post a short example of how to Read and write to the windows registry? Also, are there any differences with this in Windows XP? All I need to save is whether or not a a checkbox is checked or not. Then when I load the program get the registery setting and set the checkbox value to that. To be honest, I don't need to save settings much in the small apps I make, and I have forgotten how to do this! I had a module of how to use Get & Save setting in one of my programs, but it was lost when I cleaned up my system and upgraded to Win XP. Any example appreciated.

  2. #2
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    Next time, try not to click the stop button on your browser whenever your thread SEEMS to not be getting through or if you make a mistake. Chances are you'll get a duped post.

    http://www.vbforums.com/showthread.p...hreadid=187224


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  3. #3
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    You could just use the built in registry functions:

    VB Code:
    1. 'Save setting
    2. Call SaveSetting(App.EXEName, "General", _
    3.   "Checkbox Value", CheckBox1.Value)
    4. 'Get Setting
    5. CheckBox1.Value = GetSetting(App.EXEName, _
    6.   "General", "Checkbox Value", vbChecked)

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