Results 1 to 4 of 4

Thread: Saving Setting

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224

    Saving Setting

    Hi,

    I' m using Visual Basic 2005 Express Edition

    I add Setting named: MyString in the Settings Page

    I'm using the Setting: My.Settings.MyString = "abcd"

    Where the program saving the value "abcd"

    Thanks in advance

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

    Re: Saving Setting

    Settings are stored in the user config file under the current user's Documents And Settings folder. When your app exits it will automatically save all setting values unless you've specifically told it not to.
    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
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224

    Re: Saving Setting

    Hi,

    I got the answer:

    http://msdn2.microsoft.com/en-us/lib...11(VS.80).aspx

    Thanks to everybody

  4. #4
    Addicted Member
    Join Date
    Apr 2003
    Location
    Australia
    Posts
    252

    Re: Saving Setting

    Quote Originally Posted by jmcilhinney
    Settings are stored in the user config file under the current user's Documents And Settings folder. When your app exits it will automatically save all setting values unless you've specifically told it not to.
    Is there a way to customize the location where config file is saved? Since I have set the Assembly Version as 1.0.* there are a lot of config files created. If there is not a way, I will have to force myself to use Assembly Version 1.0.0.0.

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