ChangeUICulture Method


ChangeUICulture Method

Location

My.Application.ChangeUICulture

Syntax

     My.Application.ChangeUICulture(cultureName) 


cultureName (required; String)

The name of the culture to use. This parameter includes a two-letter lowercase language code, optionally followed by a hyphen and a two-letter uppercase country or region code. These codes are defined as ISO standards. For instance, the culture for the English language with no specified region is "en," while English in the United States is defined as "en-US." Setting this parameter to the empty string ("") indicates the default "invariant" culture. See the System.Globalization.CultureInfo Class entry in the Visual Studio documentation for a full listing of all possible culture name values.

Description

The ChangeUICulture method modifies the active user-interface culture settings used by the active thread to correctly locate display resources. An application may include different display strings and other resources that vary by culture or language. This setting causes the application to automatically select the appropriate set of resources.

Usage at a Glance

  • An exception is thrown if an invalid culture name is used.

  • The use of this method impacts the application's interaction with the Resource Manager and alters the behavior of the My.Resources object.

Related Framework Entries

  • Microsoft.VisualBasic.ApplicationServices.ApplicationBase.ChangeUICulture Method

  • System.Globalization.CultureInfo Class

  • System.Threading.Thread.CurrentUICulture Property

See Also

Application Object, ChangeCulture Method, InstalledUICulture Property, Resources Object, UICulture Property




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net