Click here to Skip to main content
14,970,948 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dear Experts,

I am working on a small business project in c# winform. Suppose someone wants date in "dd/MM/YYYY", someone wants date in "dd.MM.YYYY". Forms background colors in desired colores. Buttons in desired style.

I want to store such settings either in database or in xml or in text file. But which format is better for this.


I want to also store the appearance/looks application(like, color of forms, style of controls etc.)


Kindly suggest me.


--- Anil Kumar Bhakta
Posted

I generally keep these sort of things in a settings file, which is stored in XML. You can include various settings files in your application such as Application Settings, User Settings etc. Here is the MSDN link for
Using Settings in C#[^]

Hope this helps
   
I found this nice article in CP

Windows Forms User Settings in C#[^]
   
Comments
Abhinav S 31-May-11 2:08am
   
Good link. My 5.
My take on this, small set of values that is not not going to change too frequently, use a text file or xml.
Large set of values, use a database.
   
Comments
Espen Harlinn 30-May-11 19:19pm
   
Good advice, my 5
Abhinav S 31-May-11 2:08am
   
Thank you Espen.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900