[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 :)
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.
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...?
Re: where does the data of my.settings stored?
Anyway, I just avoided using End statement and instead used the form1.close() event
Re: where does the data of my.settings stored?
Quote:
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.
Re: [RESOLVED] where does the data of my.settings stored?