Parent

The Parent object returns the form, object, or collection that contains the control. Returns the object or collection that contains another object or collection. Read-only.

Syntax

object.Parent

The object placeholder represents an object expression that evaluates to an object.

Remarks

Most objects have either a Parent property or a Collection property that points to the object's parent object in this object model. The Collection property is used if the parent object is a collection.

Use the Parent property to access the properties, methods, and controls of an object's parent object.

MsgBox Command1.Parent.Name = 4

The Parent property is useful in an application in which you pass objects as arguments. For example, you could pass a control variable to a general procedure in a module, and use the Parent property to access its parent form.