473,385 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

MessageBox can be localized?

Hi,

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

Nov 16 '05 #1
3 10565
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 16 '05 #2
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.

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:O2**************@TK2MSFTNGP12.phx.gbl...
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Nov 16 '05 #3
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/en...oxindirect.asp

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bogdan Zamfir | last post by:
Hi, I have big troubles with an Access2002 application I wrote it under Acc2002 Romanian, and try to run it on Acc2002 US version, and I have the following troubles For some forms, Load event...
2
by: pnp | last post by:
Hi all, Can I construct a MessageBox with custom Texts for it's buttons? In Greek for example... Thanks in advance, Peter.
1
by: °Ë´óɽÈË | last post by:
Hi, MessageBox can be localized? It's say, Can I set the language of "OK", "Cancel" button.
1
by: GeorgeB | last post by:
I use HOW TO: Send Raw Data to a Printer by Using Visual Basic .NET <URL:http://support.microsoft.com/?scid=kb;EN-US;322090> to send text to a dotmatrix printer. I cannot print localized text...
3
by: Mark Findlay | last post by:
When programming reads of the Windows Registry, do the registry keys and values need to be localized for international use? For example, do I need to convert the key name...
4
by: Jaya | last post by:
I have a program which runs in multiple languages. The problem is that message boxes displayed when I run my program on Hebrew still have left-to-right reading order. This is Hebrew locale on an...
1
by: cold80 | last post by:
I'm trying to understand how VS 2005 and the .NET Framework 2.0 can be used for a localized application. I've read a lot of messages, posts and guides but I can find a straight answer. I would like...
2
by: randy1200 | last post by:
I have the following line of C# code: MessageBox.Show(filesThatDoNotExist, "Files Not Found", MessageBoxButtons.OK); This line generates the following warning when I select "Run Code Analysis"...
3
by: Pieter | last post by:
Hi, What's the commonly used way to do internationalization of the text in MessageBoxes? Thanks a lot in advance, Pieter
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.