E
eikel
Hi
I am trying to display and set the language in XP,
therefore I wrote the following program:
using System;
using System.Globalization;
using System.Security.Permissions;
using System.Threading;
[assembly:SecurityPermission(
SecurityAction.RequestMinimum, ControlThread = true )]
public class SamplesCultureInfo
{
public static void Main()
{
// Displays the name of the
CurrentUICulture of the current thread.
Console.WriteLine( "CurrentUICulture is
{0}.", CultureInfo.CurrentUICulture.Name );
// Changes the CurrentUICulture of the
current thread to chinese
Thread.CurrentThread.CurrentUICulture =
new CultureInfo( "zh-CHS");
Console.WriteLine( "CurrentUICulture is
now {0}.", CultureInfo.CurrentUICulture.Name );
}
}
//end program
The languagebar is not updated. So the question is:
How to display/set the language in Windows XP with a C#
program?
Thanks for any help!!
Cheers E.
I am trying to display and set the language in XP,
therefore I wrote the following program:
using System;
using System.Globalization;
using System.Security.Permissions;
using System.Threading;
[assembly:SecurityPermission(
SecurityAction.RequestMinimum, ControlThread = true )]
public class SamplesCultureInfo
{
public static void Main()
{
// Displays the name of the
CurrentUICulture of the current thread.
Console.WriteLine( "CurrentUICulture is
{0}.", CultureInfo.CurrentUICulture.Name );
// Changes the CurrentUICulture of the
current thread to chinese
Thread.CurrentThread.CurrentUICulture =
new CultureInfo( "zh-CHS");
Console.WriteLine( "CurrentUICulture is
now {0}.", CultureInfo.CurrentUICulture.Name );
}
}
//end program
The languagebar is not updated. So the question is:
How to display/set the language in Windows XP with a C#
program?
Thanks for any help!!
Cheers E.