Best way to set labels, buttons and other text in resource file
find the attached code
it may help
Main Topics
Browse All TopicsThere are several labeled buttons, labels, and text prompts in my vb.net 2008 app.
I wanted to make it work in a few other languages. I am new to 2008 and I have never done multilanguage...
My best idea was to have a drop down box to select the language and then populate all of the items with new text (either in variables for text prompts, or in .text property for buttons etc.
Is there a better way?
I was thinking English, Spanish, German, French)
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
One way is:
1) Define a property file (flat file) for each language
2) Define keys for each text (displayed on Lables,buttons, alter windows etc)
3) Use same key in different property files for the same information in different langugage.
Like
english.properties will contain
1001=Hi
1002=Bye
spanish.properties will contain
1001=Hola
1002=Adio
Note: You can use some descriptive keys for each entry.
4) Write a Reusable component that has methods which takes Key and langugage as input parameters and returns corresponding String for given key and language using above properties file
5) Load these properites during application startup (or when language is changed)
6) Whenever you are displaying lables, buttons and/or alters, pass the key to the method in Step 4 and get the String and set the text you lable, button and/or alter.
Thanks,
Amar
Business Accounts
Answer for Membership
by: pramodbugudaiPosted on 2009-10-28 at 21:45:20ID: 25690723
Hi. There is no direct way to do this. You need to store the button, textbox captions etc to a differemt place like text file, INI file,XML file or string lists variables from VB code. And then use it through UNICODE. Because UNICODE is the only way to use multilanguage support in your application. Each and every character for languages like English, Spanish, German, French have a specific UNICODE definition.
ic/visual- basic-net/ answers/33 6418-multi language-s upport
m/attachme nts/Resour ces/32976- 22243-Mult ilanguage_ applicatio n_developm ent.doc
Also follow these links.
http://bytes.com/top
http://www.dotnetspider.co