Results 1 to 5 of 5

Thread: [2008] Application Settings

  1. #1

    Thread Starter
    Frenzied Member Icyculyr's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    1,934

    Resolved [2008] Application Settings

    I have been wondering for a while now, what application starts do, and are, and how they work...

    I assume they store data into the applications exe file? where it can not be accessed?

    Cheers
    Last edited by Icyculyr; Apr 3rd, 2008 at 11:50 PM.

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

    Re: [2008] Application Settings

    Settings are stored in the config file. Application scoped settings are stored in the common config file in the same folder as the EXE. User scoped settings are stored under each user's Application Data folder. The config file is XML, and each setting is a .NET object that gets serialised to, and deserialised from, that file.
    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

  3. #3

    Thread Starter
    Frenzied Member Icyculyr's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    1,934

    Re: [2008] Application Settings

    I see, are they 'visible' or encrypted? and if they are encrypted, are the easy to decrypt?

    What would I use to store data in? Application.Settings, and I assume it would be classed as User Scope Data?

    Cheers

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

    Re: [2008] Application Settings

    The config file is XML, which is plain text. If you want to store sensitive data the Framework can encrypt sections of it for you. The encryption and decryption is done seamlessly without any intervention by you once it's implemented. Application-scoped data is read-only via My.Settings and there's one copy of the data for the entire application. User-scoped data is read/write via My.Settings and each user has their own version of the data.
    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

  5. #5

    Thread Starter
    Frenzied Member Icyculyr's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    1,934

    Re: [2008] Application Settings

    Ok, thanks

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