Share via


Visual Basic Reference

LocaleID Property

See Also    Example    Applies To

Returns a long value that contains the Locale identification (language and country) of the user.

Syntax

object**.LocaleID**

The LocaleID property syntax has this part:

Part Description
object An object expression that evaluates to an object in the Applies To list.

Remarks

The LocaleID ambient property contains identification of the language and country of the current user. Using this identification, the control can modify its behavior and appearance to fit the language and country. This could be as simple as having error notifications in the language of the user, to more complex modifications of property, method, and event names in the language of the user.

If the container does not implement this ambient property, the default value will be the current System LocaleID.