471,887 Members | 1,498 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Internationalize the MessageBox in Compact Framework


I have a question regarding internationalization. We are working on an application that is going to be used in different countries. Already we have internationalized every string that can be internationalized (text on buttons, labels etc). The problem is MessageBoxes also need to be internationalized. For instance Yes and No. I know this depends on the regional settings in your OS. But I need this to be set on user level and not OS level.

I wanted to set the CultureInfo when the user selects another language at the start, like the following line.:

Thread.CurrentThread.CurrentCulture = New CultureInfo("fr-FR", False)

The problem is that this is not possible with CF. How can I internationalize the buttons of the MessageBox? Do I need to create a new kind of MessageBox?

Kind regards,
Oct 7 '08 #1
3 2962
648 Expert 512MB

Personally I would probably override the existing messagebox class if you can and then try and update the enumerator for the buttons... that might be an option

Oct 7 '08 #2
I created my own MessageBox variant which seems to work fine :)
Oct 7 '08 #3
648 Expert 512MB
I created my own MessageBox variant which seems to work fine :)
Feel free to post any code you think might be helpful to anyone in the same situation in the future.

Reap what you sow and all that....

Oct 7 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Earle Oxner | last post: by
1 post views Thread by Asad Khan | last post: by
2 posts views Thread by Hans Kesting | last post: by
1 post views Thread by Daniel Passwater via DotNetMonster.com | last post: by
1 post views Thread by John Kraft | last post: by
reply views Thread by YellowAndGreen | last post: by

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.