To Change the CurrentUIculture for a current thread..

To Change the CurrentUICulture for a current thread, the following lines will be helpful.

When this will be useful:
To make your application bug free while Globalization Testing Phase.

What you will do:
1) Start your application
2) Change the language to some other language through Control Panel -> Regional Settings.
3) Now if the application to take the recent selected culture, the following lines of code may be helpful.


Thread.CurrentThread.CurrentCulture.ClearCacheddata();
Thread.CurrentThread.CurrentUICulture.Clearcacheddata();
Thread.CurrentThread.CurrentUICulture = CurrentThread.CurrentCulture;

Comments

Popular posts from this blog

Network Security: LAN manager authentication level

Cisco AnyConnect Secure Mobility Client - VPN service not available. The VPN agent service is not responding