Container Property (AControl)

Version 5

 

Returns the control's container object.

Syntax

[ obContainer = ] Object.Container

The Container property syntax has the following parts:

 

Name

Type

Description

Object

A control

A control object

obContainer

Object

An object which contains this control object.

Comments

When you hide or move the container it will hide or move its controls. Also when you disable the container it will disable its child controls.

Example

The following statement hides the group of controls where the checkbox exists:

chkOption1.Container.Visible=False

Applies to

AGroupBox, APanel

See Also

Controls, ControlsCount