Changing regional options in c#.net
-
How can I change my system's Regional options (I want to change it to English-United states and also the datetime/currency formats) using c# code. If any one knows plz reply...urgent :-( Thanks in advance Ranjith Stephen
-
How can I change my system's Regional options (I want to change it to English-United states and also the datetime/currency formats) using c# code. If any one knows plz reply...urgent :-( Thanks in advance Ranjith Stephen
Hello I believe it's possible, yet not preferable!! Why, I won't like it at all if i install a program that misses up with my system's configuration. I'd start wondering what else did that program do in my system. Probable, I'd uninstall it immediately and make a system restore. The real question isn't how. It's why?? Why would you want to do such thing? My guess is that you are facing some trouble with the Date/Time or currency/numbers formatting, Right-To-Left issues and things like that. Post some details of your real problem, and maybe we can work it out, as changing the system's configuration to suit your formatting isn't the solution.
Regards:rose:
-
Hello I believe it's possible, yet not preferable!! Why, I won't like it at all if i install a program that misses up with my system's configuration. I'd start wondering what else did that program do in my system. Probable, I'd uninstall it immediately and make a system restore. The real question isn't how. It's why?? Why would you want to do such thing? My guess is that you are facing some trouble with the Date/Time or currency/numbers formatting, Right-To-Left issues and things like that. Post some details of your real problem, and maybe we can work it out, as changing the system's configuration to suit your formatting isn't the solution.
Regards:rose:
Hii thanx for ur reply. Bu t the thing is that I am modifying an existing appplication. There is a lot of calculations and using a lot of constants ( from ini files and hard coded strings .. etc). Moreover the application will be running in a dedicated system and there is no question of restoring it. I searched for API s which enables me changing the settings but i couldnt find any :-( Do you know any ??? thanks and Regards
asdasd
-
Hii thanx for ur reply. Bu t the thing is that I am modifying an existing appplication. There is a lot of calculations and using a lot of constants ( from ini files and hard coded strings .. etc). Moreover the application will be running in a dedicated system and there is no question of restoring it. I searched for API s which enables me changing the settings but i couldnt find any :-( Do you know any ??? thanks and Regards
asdasd
Hello You can't change the systems locale perminantly using any API -it would take much more than that to hack into windows restricted settings-. Anyway you can make a workaround it by changing the locale to your app's session only. Check Win APi
SetLocaleInfo()
function.Regards:rose:
-
Hello You can't change the systems locale perminantly using any API -it would take much more than that to hack into windows restricted settings-. Anyway you can make a workaround it by changing the locale to your app's session only. Check Win APi
SetLocaleInfo()
function.Regards:rose:
Hey It is possible..I mean no need to change the systems settings, but the application enviornment as you said . Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US" , true); will set the application settings into en-US , and our application will work in en-Us format Thanx Ranjith Stephen
asdasd