❔ Properties.Settings.Default producing different stored values when called from different winForms
Environment (Autodesk Revit API)
I am using
Properties.Settings.Default
and can update, reload or save the appropriate setting happily, however I am getting different values when trying to load the property from a different win form that setting was saved in.
For example, the following (generic names used)
Properties.Settings.Default.Setting1 = "default";
in winform1 I save a string:
Properties.Settings.Default.Setting1 = "string";
Then I save it. When reopening the winform I use the reload method. I then correctly see string
instead of default
, in the example. The setting was successfully updated.
However if I try to view this setting outside of winform1, say winform2, I only see the default
setting applied from inside VS.
Anyone have an idea why this could be happening or directions to fix?1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.