Localization and MessageBox

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
 
J

Jay B. Harlow [MVP - Outlook]

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
 
H

Herfried K. Wagner [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top