|
-
Aug 25th, 2006, 09:36 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Save to registry
I need code that will save information to registry. For example, if the user clicks a check box everytime the application is loaded then the check box is ticked, however if they untick the check box it will load with the check boxes unticked.
I also need this for Option boxes, Text boxes.
Please help
Hello, Im a complete beginner so I if I ask obvious questions don't laugh. I have had no special training and I thought I'd learn and I thought this is the best place to start.
I started off using VB 6.0 but when I bought a new computer I decided to upgrade to VB 2005, so its a little bit different to what i'm used to
-
Aug 25th, 2006, 09:40 AM
#2
Re: Save to registry
VB Code:
Private Sub Form_Load()
Check1.Value=GetSetting(appname:="myApp", section:="Settings", Key:="CheckValue", Default:="1") 'default 1 (checked) for the first load
End Sub
Private Sub Check1_Click()
SaveSetting "myApp", "Settings", "CheckValue", Check1.Value
End Sub
It goes pretty much the same for OptionBox and TextBox.
Last edited by gavio; Aug 25th, 2006 at 09:44 AM.
-
Aug 25th, 2006, 10:57 AM
#3
Re: Save to registry
Martin's CodeBank submission should provide you with the information that you need.
-
Aug 25th, 2006, 11:58 AM
#4
Thread Starter
Hyperactive Member
Hello, Im a complete beginner so I if I ask obvious questions don't laugh. I have had no special training and I thought I'd learn and I thought this is the best place to start.
I started off using VB 6.0 but when I bought a new computer I decided to upgrade to VB 2005, so its a little bit different to what i'm used to
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
|