Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

InstalledUICulture Property

Location

My.Computer.Info.InstalledUICulture

Syntax

Dim result As System.Globalization.CultureInfo = _ My.Computer.Info.InstalledUICulture

Description

The InstalledUICulture property returns a System.Globalization.CultureInfo object that describes the user interface culture of the operating system. It is especially useful when working with localized operating systems.

Usage at a Glance

This property is read-only.

Example

On a typical Windows system in the United States, this code:

MsgBox(My.Computer.Info.InstalledUICulture.DisplayName)

displays the following message:

English (United States)

Related Framework Entries

  • Microsoft.VisualBasic.Devices.ComputerInfo.InstalledUICulture Property

  • System.Globalization.CultureInfo.InstalledUICulture Property

See Also

ChangeUICulture Method, Info Object (My.Computer), UICulture Property

Категории