AmbientChanged Event

       

Occurs when an ambient property’s value changes.

Syntax

Sub object_AmbientChanged(PropertyName As 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.