Mega Code Archive

 
Categories / VB.Net / Internationalization
 

Gets the CultureInfo that represents the culture used by the current thread

Imports System Imports System.Globalization Imports System.Security.Permissions Imports System.Threading <assembly: SecurityPermission(SecurityAction.RequestMinimum, ControlThread := True)> Public Class SamplesCultureInfo    Public Shared Sub Main()       Console.WriteLine("CurrentCulture is {0}.", CultureInfo.CurrentCulture.Name)       Thread.CurrentThread.CurrentCulture = New CultureInfo("th-TH", False)       Console.WriteLine("CurrentCulture is now {0}.", CultureInfo.CurrentCulture.Name)    End Sub End Class