Visual Basic Reference

Container Property

See Also    Example    Applies To

Returns or sets the container of a control on a Form. Not available at design time.

Syntax

Set object.Container [= container]

The Container property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
container An object expression that evaluates to an object that can serve as a container for other controls, as described in Remarks.

Remarks

The following controls can contain other controls:

  • Frame control

  • PictureBox control

  • SSTab control