Results 1 to 6 of 6

Thread: [RESOLVED] where does the data of my.settings stored?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2007
    Posts
    83

    Resolved [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

  2. #2
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2007
    Posts
    83

    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...?

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Feb 2007
    Posts
    83

    Re: where does the data of my.settings stored?

    Anyway, I just avoided using End statement and instead used the form1.close() event

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Feb 2007
    Posts
    83

    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
  •  



Click Here to Expand Forum to Full Width