Changes the culture that the current thread uses for retrieving culture-specific resources.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
The My.Application.ChangeUICulture method changes the current thread's CurrentUICulture property. The CurrentUICulture property determines the culture used by the Resource Manager and the My.Resources object; it uses this information to look up culture-specific resources at run time.
Use the My.Application.ChangeCulture method to change the culture that the current thread uses for string manipulation and string formatting.
Availability by Project Type
Windows Forms Application
Windows Forms Control Library
Web Control Library
This example uses the My.Application.ChangeUICulture method to set the culture that the My.Resources object uses for retrieving resources.
For this example to work, your application must have a string named Message in the application's resource file, and the application should have the French-culture version of that resource file, Resources.fr-FR.resx. For more information, see How to: Add or Remove Resources.
If the application does not have the French-culture version of that resource file, the My.Resources object retrieves the resource from the default-culture resource file.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.