Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want that as soon as the C# application loads,,change the regional setting's language option to English(United States).
And also I want to uncheck "Use User Account Control(UAC) to help protect your computer"
Posted
Comments
_Damian S_ 8-Dec-11 0:17am    
Why? I don't want your application adjusting my computer's settings, and I'm pretty sure noone else does either...
Sergey Alexandrovich Kryukov 8-Dec-11 13:45pm    
You are absolutely right.

The practical problem is easy to resolve without doing this unacceptable thing -- please see my solution.
--SA
Sergey Alexandrovich Kryukov 8-Dec-11 13:37pm    
Why?
--SA

1 solution

Why doing so? Bad idea! The system settings should be changed by the user or local administrators trusted by the user, nobody else, ever.

This is your application that should be responsible for correctly behavior regardless of Regional Settings. By the way, this is easy. All .NET application can work in any culture no matter what is set up in the OS. To do that, your thread(s) can assign desirable value to the properties CurrentUICulture and CurrentCulture, see:
http://msdn.microsoft.com/en-us/library/system.threading.thread.currentculture.aspx[^],
http://msdn.microsoft.com/en-us/library/system.threading.thread.currentuiculture.aspx[^].

—SA
 
Share this answer
 
v3
Comments
Monjurul Habib 8-Dec-11 15:45pm    
5!
Sergey Alexandrovich Kryukov 8-Dec-11 16:06pm    
Thank you, Monjurul.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900