I'm new to WPF applications and I am dealing with an app that is storing some simple variables in settings.settings via the grid GUI in Visual Studio.
The problem is that somehow two boolean variables have been set to true, and I can't seem to reset them. If I go back to the sett开发者_如何学编程ing GUI, I can see that the value is set to "False", but when loading the settings variables during debugging, it shows them being set to "True".
How can I reset these variables to False outside of the Settings GUI?
They must be in the app.config or web.config of the executing assembly, you must copy that config to it if the settings are in another assembly. What you set in the GUI is the default value for those variables.
You might have an app.config stored for your user which might overwrite the default values. Or dito for app.config for the executable.
You might want to check whether these variables are set to True
in your app.config file.
精彩评论