0

Hi,
I am able to change the language in the windows form by selecting language from ComboBox. However, I want to make it dynamic so that it will change the language of all the other forms by selecting language from ComboBox in the first form.
I got some clues from these websites, but I am still struggling to achieve my objective.

http://www.dotnetcurry.com/ShowArticle.aspx?ID=174

http://www.vb-helper.com/howto_net_localize_at_runtime.html

Would greatly appreciate your help.

Thank You.

3
Contributors
2
Replies
10
Views
4 Years
Discussion Span
Last Post by Eternal Newbie
0

Simple... Just get the selected value in combobox from the language selection form.After that, in the other form's load event you have to get the combo box selected value and write the condition for it.

eg:

String lang;
    if (lang="English")
    {
    label1.text="xxxxxxx";
    label1.font="Ur needed lang font";
    }

And dont forget, It will not translate it. Many of friends have some doubts about font change and translation in a windows forms development environment.

Hope this Helps...

Have a happy Coding...

0

Creat a .dll file which you added to your projects, or a class which contains a public shared sub doing changing your language.
Create a public datatable contains languages you needed and their code, then inherit them in your forms.
Anw, writing all those was long and I'm being lazy now :))

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.