How to change form language (in code)

  • Thread starter Thread starter Carlos Cruz
  • Start date Start date
C

Carlos Cruz

Hi,

I'm trying to make a multilanguage application.
I manage to create the forms resource files for each language and to read
them (rm.GetString("Label1.Text", pCultureInfo)), but I need to change all
objects after changing pCultureInfo.
Is it possible to change the forma language in code? Where? How?
(I see that in designtime when I change the language, all objects are
updated... It might be possible to do it in runtime)

Thanks
CC
 
You can change the language displayed at runtime by setting
System.Threading.Thread.CurrentThread.CurrentUICulture to a different
CultureInfo.

To change formatting for dates, currency, etc..., use
System.Threading.Thread.CurrentThread.CurrentCulture.
 
Back
Top