the best way to keep properties from the user

yaniv

Well-known member
Joined
Apr 15, 2002
Messages
162
Location
israel
What do you think is the best way to keep CONSTS that use for properties for an app.

should i create a text file that will deployed in the user machine, or there is a better way?
 
The values for a constant cannot come from a variable or a text file.

The way I understand your title is that you dont want to expose properties to the user. Did I not understand?
 
The .exe.config file is usually used for storing app settings but its easily accessible by the user. You can try using the Windows Registry.
 
Oh, I saw the title again, the problem is my English.

What I meant is "how do I keep properties that the user gives me".

Sorry.
 
Theres a class to read settings from the .exe.config file but no corresponding class for writing settings exist. To write to it, you have to treat it just like any other XML file.

For storing user settings, Id recommend that you use the Windows Registry if possible.
 
Back
Top