Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Modulebot 2 - Plugin based twitchbot

(Aug 7, 2015 01:08 AM)iNCEPTiON_V Wrote:  Then Please feel free to explain us why that function is "shit".
Our company saves settings like that since ages, never had any problems with that .

EDIT: nice answer from StackOverflow

The registry is a no-go. You're not sure whether the user which uses your application, has sufficient rights to write to the registry.

You can use the app.config file to save application-level settings (that are the same for each user who uses your application).

I would store user-specific settings in an XML file, which would be saved in Isolated Storage or in the Application Folder

Next to that, as from .NET 2.0, it is possible to store values back to the app.config file.

If you move the file or modify it in anyway, the settings gets cleared.
(Aug 8, 2015 03:43 PM)BahNahNah Wrote:  What? No.
If you edit the settings file and make it invalid, then yes, the settings get cleared. But why would you want to edit it anyway?

I meant the exe, not the file. Sorry


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by devvarietyJun 14, 2019 10:02 AM 1 321 Jun 14, 2019 10:02 AM
Last Post: SaketSaket
[.NET] by BarretNov 11, 2017 09:53 AM 3 374 Nov 11, 2017 09:53 AM
Last Post: StaPol
[.NET] by trashposterMar 13, 2017 01:50 PM 2 192 Mar 13, 2017 01:50 PM
Last Post: trashposter