Hi,
What's the commonly used way to do internationalization of the text in
MessageBoxes?
Thanks a lot in advance,
Pieter
Ray Cassick - 25 Jan 2007 13:23 GMT
As far as I know there are two ways:
1) Create your own message box form and use the standard
internationalization techniques there.
2) Pull the text form a resource file and send it to the message box.
> Hi,
>
[quoted text clipped - 4 lines]
>
> Pieter
Herfried K. Wagner [MVP] - 25 Jan 2007 14:40 GMT
"Pieter" <pieterNOSPAMcoucke@hotmail.com> schrieb:
> What's the commonly used way to do internationalization of the text in
> MessageBoxes?
Create a separate resource file for each language. To do so, copy
"Resources.resx" and rename the copies to include the language identifier in
their names ("Resources.de.resx", ...). Then change the resource strings
there. Inside the source code you can simply access the resources using
'My.Resources.<resource identifier>. Note that the message box' buttons
cannot be localized. Windows chooses the captions based on the system
settings.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Eric Moreau - 26 Jan 2007 12:57 GMT
have a look at
http://www.emoreau.com/Entries/Articles/2006/01/A-custom-MessageBox.aspx

Signature
HTH
Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
S2i web inc. (www.s2i.com)
http://www.emoreau.com/
> Hi,
>
[quoted text clipped - 4 lines]
>
> Pieter