settings.settings values don't load?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brett Romero

    settings.settings values don't load?

    I've created a new settings file named AppList.setting s for a Winform
    app. In the Program.cs file, I can access values in settings.settin gs
    fine. However, when I do this:

    SettingsPropert yValueCollectio n propertyColl =
    MyNameSpace.Pro perties.AppList .Default.Proper tyValues;

    No values come back; the collection is empty. There are three entries
    in the file. However, if I set a breakpoint anywhere in the Program.cs
    file, I get values from the AppList file. The breakpoint can be after
    the above assignment and I still get values. The Settings.settin gs
    file works fine regardless.

    Any ideas why that is?

    Thanks,
    Brett

  • Brett Romero

    #2
    Re: settings.settin gs values don't load?

    If I do this before trying to use the values, it works everytime:

    bool test = AppList.IDConve rsion;

    It acts sort of like a primer. Still not sure what is going on.

    Brett

    Comment

    Working...