ControlContainer Property

       

Returns or sets a value determining if a control can contain controls placed on it by the developer or the end user at the control’s run time; in the same way the PictureBox control can contain other controls. The ControlContainer property is read/write at the control’s authoring time, and not available at the control’s run time.

Settings

The settings for ControlContainer are:

Setting Description
True The control can contain controls placed on it. If an instance of this control is placed on a container that is not aware of ISimpleFrame, support of contained controls will be disabled. The control will continue to work correctly in all other ways, but developers or end users will be unable to place controls on an instance of this control.
False (Default) The control cannot contain controls placed on it.

Remarks

Contained control support does work on a Visual Basic form.

Contained controls placed on a control with a transparent background are only visible where their location overlaps any constituent controls. Mouse events will be passed to the contained control only if they occur where the contained control is visible.