Sam, don't bother with him unless you are really sure what you are doing.
I assume we are talking about WinForms here. The frame raises the optimal settings from the system (as configured by the user). From your question, this might be more of a testing problem. I regularly add code after #if DEBUG to select a locale for testing purposes.
My own example: my locale is Dutch (nl-NL), but I usually run English versions of Windows. If you override CurrentUICulture, I will get the Dutch version (if available), which is usually normal. But I know with certainty that some controls / add-ons will remain in English (including ShowMessage and std Dialogs boxes). The combination is ugly.
But also consider the case when you do not add satellites that match CurrentCulture. The system will revert to the default in your program, while the user interface of the user interface may be the best choice. I don't know all the return rules, but you can probably get something similar to:
The user runs fr-CA settings in fr-FR windows. Your program returns to en-US, user n'est pas happy.
My advice:
- perform some field tests
- if you create an override then use the switch in app.config
Henk holterman
source share