.NET Framework Class Library
ThreadCurrentUICulture Property

Gets or sets the current culture used by the Resource Manager to look up culture-specific resources at run time.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)
Public Property CurrentUICulture As [%$TOPIC/t733d0f8_en-us_VS_110_1_0_0_0_0%]
public [%$TOPIC/t733d0f8_en-us_VS_110_1_0_1_0_0%] CurrentUICulture { get; set; }
property [%$TOPIC/t733d0f8_en-us_VS_110_1_0_2_0_0%]^ CurrentUICulture {
	[%$TOPIC/t733d0f8_en-us_VS_110_1_0_2_0_1%]^ get ();
	void set ([%$TOPIC/t733d0f8_en-us_VS_110_1_0_2_0_2%]^ value);
member CurrentUICulture : [%$TOPIC/t733d0f8_en-us_VS_110_1_0_3_0_0%] with get, set
function get CurrentUICulture () : [%$TOPIC/t733d0f8_en-us_VS_110_1_0_4_0_0%] 
function set CurrentUICulture (value : [%$TOPIC/t733d0f8_en-us_VS_110_1_0_4_0_1%])

Property Value

Type: System.GlobalizationCultureInfo
An object that represents the current culture.

The property is set to .


The property is set to a culture name that cannot be used to locate a resource file. Resource filenames must include only letters, numbers, hyphens or underscores.


The UI culture specifies the resources an application needs to support user input and output, and by default is the same as the operating system culture. See the CultureInfo class to learn about culture names and identifiers, the differences between invariant, neutral, and specific cultures, and the way culture information affects threads and application domains. See the CultureInfoCurrentUICulture property to learn how a thread's default UI culture is determined.

The CultureInfo returned by this property can be a neutral culture. Neutral cultures should not be used with formatting methods such as StringFormat(IFormatProvider, String, Object), DateTimeToString(String, IFormatProvider), and ConvertToString(Char, IFormatProvider). Use the CultureInfoCreateSpecificCulture method to get a specific culture, or use the CurrentCulture property.


The CultureInfoCreateSpecificCulture method throws ArgumentException for the neutral cultures "zh-Hant" ("zh-CHT") and "zh-Hans" ("zh-CHS").


The following code example shows the threading statement that allows the user interface of a Windows Forms to display in the culture that is set in Control Panel. Additional code is needed.

Imports System.Threading
Imports System.Windows.Forms

Public Class UICulture : Inherits Form
    Sub New()

        ' Set the user interface to display in the 
        ' same culture as that set in Control Panel.
        Thread.CurrentThread.CurrentUICulture = _

        ' Add additional code. 
    End Sub 

    Shared Sub Main()
        Application.Run(New UICulture())
    End Sub 
End Class
using System;
using System.Threading;
using System.Windows.Forms;

class UICulture : Form
    public UICulture()
        // Set the user interface to display in the 
        // same culture as that set in Control Panel.
        Thread.CurrentThread.CurrentUICulture = 

        // Add additional code.

    static void Main()
        Application.Run(new UICulture());
#using <system.dll>
#using <System.Drawing.dll>
#using <system.windows.forms.dll>

using namespace System;
using namespace System::Threading;
using namespace System::Windows::Forms;
ref class UICulture: public Form

      // Set the user interface to display in the 
      // same culture as that set in Control Panel.
      Thread::CurrentThread->CurrentUICulture = Thread::CurrentThread->CurrentCulture;

      // Add additional code.

int main()
   Application::Run( gcnew UICulture );
Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library