0
try
{
    ...
}
catch (Exception ex)
{
    CultureInfo.CurrentCulture.ClearCachedData();
    System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
    System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
    MessageBox.Show(ex.Message);
}

But ex.Message is still shown in Chinese. How can I fix it?

Ursidae
  • 87
  • 9
  • 2
    The `message` of most exceptions is set on construction (not all, but most). Changing the culture after catching the instance generally won't change it; it would need to have to be changed before. – Jeroen Mostert Jul 05 '19 at 10:05
  • Why do you expect such behavior? You should set the culture before exception raised – Pavel Anikhouski Jul 05 '19 at 10:06
  • 1
    Possible duplicate of [Exception messages in English?](https://stackoverflow.com/questions/209133/exception-messages-in-english) – Pavel Anikhouski Jul 05 '19 at 10:07

0 Answers0