MessageBox can be localized?

  • Thread starter Thread starter Jerry
  • Start date Start date
J

Jerry

Hi,

MessageBox can be localized? It's say, Can I set the language
of "OK", "Cancel" button.
 
MessageBox can be localized?

They are already, by the OS. If you have for example a spanish version
of Windows, the buttons are in spanish too.



Mattias
 
I'm interested in this issue too.

Sure the OS localises the buttons of the MessageBox but what if the
user interface language of my app isn't the same as the OS' language?
For ex. a Spanish GUI on an English OS. Wouldn't it be nice to have
the buttons in Spanish rather than in english?

So the question remains.
(by the way, in VB6 we wrote our own MsgBox to deal we the problem - would
be a pity having to do that again in .NET)

-- Marius.
 
Marius,
Sure the OS localises the buttons of the MessageBox but what if the
user interface language of my app isn't the same as the OS' language?
For ex. a Spanish GUI on an English OS. Wouldn't it be nice to have
the buttons in Spanish rather than in english?

Since message boxes are everywhere, the user is probably used to
seeing them in english. If that was a probelm for the user, they would
probably not run an english OS.

So the question remains.
(by the way, in VB6 we wrote our own MsgBox to deal we the problem - would
be a pity having to do that again in .NET)

The MessageBoxIndirect Win32 API lets you choose the language for the
button, provided that the language resources are installed on the
system (I believe that requires installing the MUI version). See

http://msdn.microsoft.com/library/e...nce/dialogboxfunctions/messageboxindirect.asp



Mattias
 
Back
Top