Globalization question RRS feed

  • Question

  • User-2126080988 posted

    I want the MessageBox to have the buttons use french, but can't make it work. I'm trying with Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR") before showing the message. What's wrong and what's the right way to do it?

    Friday, May 27, 2005 1:08 AM

All replies

  • User-29028846 posted
    Did you define a resource file for French culture? Also did you define the strimgs that are to be used on the Buttons in the MessageBox in the  resource file?
    Friday, May 27, 2005 7:10 AM
  • User1938522110 posted
    Try setting it as below

    Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");
    Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR");

    Friday, May 27, 2005 5:59 PM