Object

Returns a reference to a property or method of a control which has the same name as a property or method automatically extended to the control by Visual Basic.

Syntax

object.Object[.property | .method]

The Object property syntax has these parts:

Part Description
property Property of the control that is identical to the name of a Visual Basic-supplied property.
method Method of the control that is identical to the name of a Visual Basic-supplied method.

Remarks

Visual Basic supplies some or all of a standard set of properties and methods to controls in a Visual Basic project. It is possible for a control or ActiveX component to define a property or method which has the same name as one of these standard properties or methods. When this occurs, Visual Basic automatically uses the property or method it supplies instead of the one with the same name defined in the control. The Object property allows you to bypass the Visual Basic-supplied property or method and use the identically named property or method defined in the control.

For example, the Tag property is a property supplied to all controls in a Visual Basic project. If a control in a project has the name ctlDemo, and you access the Tag property using this syntax:

ctlDemo.Tag