the best way to keep properties from the user

yaniv

Centurion
Joined
Apr 15, 2002
Messages
167
Location
israel
What do you think is the best way to keep CONST'S 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 don't want to expose properties to the user. Did I not understand?
 
The .exe.config file is usually used for storing app settings but it's 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.
 
There's 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, I'd recommend that you use the Windows Registry if possible.
 
Back
Top