locked
c# setting for Location returns -32000 RRS feed

  • Question

  • In Settings.settings (app.config), I have a value for Location point (100,10). If user moves to new location, that value is saved. However, when c# code reads app.config (contains correct values), Location is assigned values: X = -32000, Y = -32000. How can this be fixed?

    Location = Properties.Settings.Default.FGLocation;


    rwb

    Saturday, December 16, 2017 1:05 PM

All replies

  • If the Scope property of this value is “User” (in Settings window), then check another .config file that is stored in a folder like “C:\Users\<myname>\AppData\Local\<myprogram>…”.

    • Proposed as answer by Stanly Fan Monday, December 18, 2017 1:31 AM
    • Unproposed as answer by Stanly Fan Thursday, December 21, 2017 2:31 AM
    • Proposed as answer by Stanly Fan Thursday, December 21, 2017 2:31 AM
    Saturday, December 16, 2017 5:18 PM
  • Right you are! Thank you for the info.


    rwb

    Saturday, December 16, 2017 5:35 PM
  • Right you are! Thank you for the info.


    rwb

    Hi ewbta2,

    If the reply provided you with a solution, please mark the reply as answered as this will help others looking for the same or similar issues down the road.

    Regards,

    Stanly


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, December 18, 2017 1:36 AM