468,103 Members | 1,393 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,103 developers. It's quick & easy.

Localizing Message boxes, strings, etc

Hi there.
I am developing an application using Visual Basic .Net 2003.
So far I have localized my forms and their controls using the VS.net Ide
(Setting localized to True, choosing a language and translating the text on
all the controls).
But now I have a problem. How can I do this with Message Boxes and text that
is created dinamically?
I searched MSDN and also used google but found nothing...

Thank you in advance!

Andrť Nogueira
Nov 20 '05 #1
3 1019
* "Andre Nogueira" <an**@netcabo.pt.NOSPAM> scripsit:
But now I have a problem. How can I do this with Message Boxes and text that
is created dinamically?


There is no direct way to localize them -- the captions will be taken
from Windows and will contain text in the system's language.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
But I mean Message Boxes generated by my program using Msgbox and strings,
such as
Dim S as String
S = "This is my string"
Msgbox "this is another string"

What is the best way to localize such resources? Any ideas?
Thanks!

Andre Nogueira
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2j*************@uni-berlin.de...
* "Andre Nogueira" <an**@netcabo.pt.NOSPAM> scripsit:
But now I have a problem. How can I do this with Message Boxes and text that is created dinamically?


There is no direct way to localize them -- the captions will be taken
from Windows and will contain text in the system's language.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3
Hi Andre,

Told is to use the resx, however mostly when this message is placed in this
way there are a lot of reactions which tell that that is much to difficult
to use for this situations.

I agree that and I think that creating a language file for that by instance
a XML dataset is much more handy. (You can change the language outside your
program with that).

I hope this helps?

Cor
But I mean Message Boxes generated by my program using Msgbox and strings,
such as
Dim S as String
S = "This is my string"
Msgbox "this is another string"

What is the best way to localize such resources? Any ideas?
Thanks!

Andre Nogueira

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ray Cassick \(Home\) | last post: by
reply views Thread by Jazzkt | last post: by
3 posts views Thread by Trapulo | last post: by
24 posts views Thread by Nak | last post: by
14 posts views Thread by Christian Sell | last post: by
3 posts views Thread by WT | last post: by
reply views Thread by Bob | last post: by
reply views Thread by =?Utf-8?B?U3VzaGlTZWFu?= | last post: by
reply views Thread by cmdolcet69 | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.