I want to create the localized application and want to implement a language switcher (e.g. special button). I use Visual Studio 2010 express (VB.NET).
I created simple test app with one label and one button. I set form’s property “Localizable” to “True” and edited components’ text in 2 languages (English as default and Russian).
I know that it is needed to add
Imports System.Threading.Thread
Imports System.Globalization
at the beginning of the Form1.vb and then use
Thread.CurrentThread.CurrentUICulture = New CultureInfo("ru")
to enable Russian localization.
But if I put this line into Button_Click event it does not change the language. Is it possible to switch between languages on event like button click or combobox change?
Thank you in advance!
Yes you can implement localization on Button Click event or on a change event. You can set the culture as
These links will help you : Globalizing and Localizing Windows Application, Walkthrough: Localizing Windows Forms, Localizing Applications