This documentation is archived and is not being maintained.

Visual Basic Reference

Visual Studio 6.0

DisplayName Property

See Also    Example    Applies To

Returns a string value that contains the name the control should display to identify itself in error messages.

Syntax

object.DisplayName

The DisplayName property syntax has this part:

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

Remarks

This ambient property is the way the control finds out what the container (such as Visual Basic) is calling this instance of the control. This string should be used in error messages as the name for the instance of the control.

If the container does not implement this ambient property, the default value will be an empty string.

Show: