Visual Basic: Windows Controls

Child Property (Band Object)

See Also   Example   Applies To

Sets or returns a reference to a child control in a Band object on a CoolBar control.

Syntax

Set *object.*Child = control

object**.Child**

The Child property syntax has these parts:

Part Description
object An object expression that evaluates to a Band in the Bands collection of a CoolBar control.
control An expression that evaluates to a control in the Band object of a CoolBar control.

Remarks

You can set the Child property of a band at design time by selecting a control from the Child list on the Bands tab in the Properties Page of the CoolBar control. At run time you can retrieve the name of the control on a Band object by reading the Child property.

To assign a new child control to a band at run time, use the Set keyword. This will replace the existing control on the Band object.