Visual Basic Reference

AmbientChanged Event

See Also    Example    Applies To

Occurs when an ambient propertys value changes.

Syntax

Subobject_AmbientChanged(PropertyNameAs String)

The AmbientChanged event syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
PropertyName A string that identifies the ambient property that has changed.

Remarks

Using PropertyName, the control can access the AmbientProperties object in the Ambient property to check for the new value of the changed ambient property.

If an instance of the control is placed on a Visual Basic form, and the FontTransparent property of the form is changed, the AmbientChanged event will not be raised.