Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
1.22/5 (2 votes)
See more:
I am developing windows application and I want to store all the texts for labels, radio buttons, buttons, check boxes, column headers of grid at one place. I have tried class file, xml file, database table and resource file. I found that class file is the best way to store all these texts, but, I want to know is their any alternate way? If i am using class file then, i will have to recompile project if any text changes. Please suggest me if you have any other best way.

Thank you in advance.
Posted
Comments
[no name] 30-Aug-13 7:48am    
You have already determined that storing this text in a class file is the "best way" for you so what is the question? Alternative ways? See your "question" text for alternates.
Sergey Alexandrovich Kryukov 30-Aug-13 10:46am    
What's wrong with resx? Who told you that "class file is the best way..."?
—SA

1 solution

Hi,

Does your application supports multi-culture facility, or only one language. If only one language then you can go for class files based on my knowledge performance will not affect. If multi-culture my next question is are you using any third party tools for globalization purpose? .resx.en, resx.sw, resx.dn like this you can define different resource file based on language I feel this is the best way. Otherwise You can go for vendor tools like infralution which helps to perform this functionality.

Thanks
Sriram.B
 
Share this answer
 

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