Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / January 2007

Tip: Looking for answers? Try searching our database.

internationalization of MessageBox?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pieter - 25 Jan 2007 12:49 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.