Returns a collection of the other controls in the control’s container. The ParentControls property is not available at the control’s authoring time, and read-only at the control’s run time.
Syntax
object.ParentControls
The ParentControls property syntax has this part:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
Remarks
In most cases, the container of the control will be a form; this collection functions in a similar manner to the Controls collection on the form, but will also contain the form itself.
This collection is useful if the control wants to perform some action on the controls on the form; the control can iterate through the collection.
Controls cannot be added or removed by the developer who uses the control through this collection; the controls must be changed in whatever manner the container allows.
The contents of this collection is determined entirely by the container.