Message box & calendar controls not displaying correctly - locali

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In our application we allow the user at runtime to select the language the
application should be displayed in. For the majority of things this works
fine, our forms display correctly, the same with menus etc and error messages
except for the following:

MessageBox - The buttons are always displayed in the language that the user
is actually physically logged in to the computer as.
Calendar - The dates etc are localised but text Today etc are always
displayed in the language that the user is actually physically logged in to
the computer as.

Is there anyway to prevent the above from happening as things like this
means the application is not localisable? Also when exceptions occur, we
were wondering if it was possible to always be able to log them in English
and not in the language the user selects.
 
The MonthCalendar class (as well as the DateTimePicker class) is hardcoded
to use the regional settings for the current user. Unfortunately there is no
way to change it.

As for the MessageBox I believe that it uses the language of the operating
system. You will have to make your own if you need to translate the text.


/claes
 
Thanks for the information. We kind of figured this would be the case. The
only other issue we were wondering about is when exceptions occur, we
were wondering if it was possible to always be able to log them in English
and not in the language the user selects.?
 
Back
Top