|
-
Jul 16th, 2002, 09:02 PM
#1
Thread Starter
Fanatic Member
Save To Registy?
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.
-
Jul 16th, 2002, 09:05 PM
#2
Frenzied Member
Try this:
VB Code:
'To SAVE to registry:
SaveSetting "MyApp", "MyCheck", "Value", Str(Check1.Value)
'To GET from registry
Check1.Value = Val(GetSetting("MyApp", "MyCheck", "Value", "0"))
MicroBasic
Dragon Shadow Trainer
There is no good or evil in the world...only programmers and fools .
-
Jul 16th, 2002, 09:08 PM
#3
Thread Starter
Fanatic Member
I'm Sorry!!!!!!!
I hate AOL! It kept saying Web site not responding, but apparently in went through and posted my post 5 times!!! Man the forum is slow anyway. I switched to IE and I'm going back and deleting the other posts. Sorry about this.
-Jeremy
-
Jul 16th, 2002, 10:34 PM
#4
-
Jul 16th, 2002, 10:42 PM
#5
PowerPoster
LOL, it's actually the web server.
-
Jul 16th, 2002, 10:44 PM
#6
Stuck in the 80s
Yeah, it has been disturbing lately.
-
Jul 16th, 2002, 11:37 PM
#7
-
Jul 17th, 2002, 09:03 PM
#8
Stuck in the 80s
Originally posted by Mc Brain
I don't want to turn this into chit-chat materia, but I didn't meant because of this issue... AOL sucks because of its essence t do things.
BTW, are you getting emails stating that someone has reply on a thread you've subscribe?? Or is it just my email server?
That's a customizable option of the forums. Are you getting them or not getting them?
-
Jul 17th, 2002, 09:08 PM
#9
-
Jul 17th, 2002, 09:21 PM
#10
Thread Starter
Fanatic Member
I'm not either......
I'm not getting the e-mails either! And I haven't changed my user options. I just stopped getting e-mails about replies to my posts. And It takes like 5 min for threads to load. The server is bogged down and overcrowded certain times of the day. I've got DSL so I can tell how slow it really is. And yes, AOL sucks but they are the only DSL provider in my area as of now and I just can't suffer dial-up.
-
Jul 17th, 2002, 09:22 PM
#11
PowerPoster
It's not your AOL I don't think. Sometimes this server gets pretty bad. I've had times when I got e-mails a day later. Usually I get them right away, but I think it's a problem with the server this forum is on getting overloaded.
-
Jul 17th, 2002, 10:53 PM
#12
PowerPoster
Well, the email that I gave to vbforums.com is now used to receive spam so I don't check it anymore.
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
|