473,385 Members | 1,409 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 10564
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
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.