In Windows.Forms application, Properties.Resources always return culture neutral values

I have a Windows.Forms application and I change resources at runtime with this code:

Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture = new CultureInfo("it-IT");

What happens is that new forms are rendered correctly with the new culture, and the Properties.Resources. * always rendered with culture neutral (even if the Properties.Resources.Culture property is correctly set to "it-IT").

How can I reload my Properties.Resources program. * lines after chaning culture?

+2


source to share


1 answer


This should happen automatically. Make sure you have created localized resources correctly:



  • Neutral culture goes into <filename>.resx

  • Italian culture goes into <filename>.it-IT.rex

    (or <filename>.it.resx

    )
+2


source







All Articles