|
-
Aug 25th, 2008, 01:29 AM
#1
Thread Starter
Lively Member
[RESOLVED] where does the data of my.settings stored?
i was playing with my.settings, and its a cool way to store settings like fonts, window size etc.
i just want to know where is these settings is stored, is it stored in the .exe or is it in the registry?
i just want to make sure that when I overwrite the .exe file, the settings is still intact.
can anybody enlighten me pls? thanks
-
Aug 25th, 2008, 01:40 AM
#2
Re: where does the data of my.settings stored?
I tried using VB.Net on one of my project since my Project Manager told me so because there are a few C# guys in here. I used the My.Settings feature and found out that its not getting the values from the Config file inside the application folder. And what I did is I tried to hack around the registry and my Users Folder and there I found It. VB Stores the data inside the \Local Settings\Application Data of the Current Users Folder
Sample:
C:\Documents and Settings\Administrator\Local Settings\Applcation Data\<Name of Application>
Hope this one cuts some time on those starting to use the My.Settings Feauture of VB.Net
Read this article in detail.
-
Aug 25th, 2008, 02:09 AM
#3
Thread Starter
Lively Member
Re: where does the data of my.settings stored?
nice,
i found out also that my.settings will not store the values if End is issued, but if i just close the startup form, it will work.
question is why...?
-
Aug 25th, 2008, 02:35 AM
#4
Thread Starter
Lively Member
Re: where does the data of my.settings stored?
Anyway, I just avoided using End statement and instead used the form1.close() event
-
Aug 25th, 2008, 02:43 AM
#5
Re: where does the data of my.settings stored?
 Originally Posted by Jonga
nice,
i found out also that my.settings will not store the values if End is issued, but if i just close the startup form, it will work.
question is why...?
The answer is that you should NEVER, EVER use End. End will terminate execution of the application at that point. That's bad. Apart from the fact that your settings won't be saved, there won't be any cleanup performed either.
-
Aug 25th, 2008, 02:45 AM
#6
Thread Starter
Lively Member
Re: [RESOLVED] where does the data of my.settings stored?
yes sir!
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
|