且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在运行时应用程序的设置更改

更新时间:2023-01-13 11:22:51

看看我的overview .NET程序的设置文件 ......总之,我想你想一个用户范围设置。它会表现得更像你期望的那样。

Take a look at my overview of .NET settings files...In short, I think you want a user-scoped setting. It will behave more like you expect.

编辑:如果您使用的是设置设计师在Visual Studio ,则只需更改范围为用户。如果没有,你应该能够以编程方式做等价。

If you are using the settings designer in Visual Studio, then simply change the "Scope" to "User". If not, you should be able to do the equivalent programmatically.