Localization and MessageBox

  • Thread starter Thread starter Gregg
  • Start date Start date
G

Gregg

I can set my CurrentCulture and CurrentUICulture to de-DE (German-Germany)
and resources load from my German-Germany satellite assembly.

The problem I run into is that the Windows Forms MessageBox.Show method does
not show German-Germany response buttons. For example,
MessageBox.Show("Test Message","Test",MessageBoxButtons.YesNoCancel); still
shows 'Yes','No', and 'Cancel' rather than 'Ja', 'Nein', and 'Abbrechen'.

Any clues as to why this is happening?

I'm using this code to set my culture:

Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE");

-Gregg
 
Gregg,
MessageBox.Show shows the Win32 message box, the Win32 message box shows the
language configured for the system itself.

In other words CurrentCulture & CurrentUICulture have no effect on it.

Hope this helps
Jay
 
Hello,

Gregg said:
The problem I run into is that the Windows Forms
MessageBox.Show method does not show German-
Germany response buttons.

The message box will show buttons in the OS' language. You will have to
implement your own message box.
 
Back
Top