Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

  • Moderators
Posted

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?

Visit...Bassic Software
Posted
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.
Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...