Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old October 7th, 2008, 09:12 AM
Member
 
Join Date: Oct 2008
Posts: 36
Default Internationalize the MessageBox in Compact Framework

Hello,

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,
Reply
  #2  
Old October 7th, 2008, 09:34 AM
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Age: 24
Posts: 489
Default

Hi,

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

Mark
Reply
  #3  
Old October 7th, 2008, 11:58 AM
Member
 
Join Date: Oct 2008
Posts: 36
Default

I created my own MessageBox variant which seems to work fine :)
Reply
  #4  
Old October 7th, 2008, 04:08 PM
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Age: 24
Posts: 489
Default

Quote:
Originally Posted by SvenV
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....

Mark
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles