ParentChanged
Introduction
The ParentChanged event is invoked whenever an object's direct parent is changed. This can happen when any of the following occur:
The Parent property is assigned to a null or non-null value
An object is added to a parent's Children collection
An object is added to root
A Forms object creates and adds a child Forms object
Code Example: Handling Parent Changed
The following code raises the ParentChanged event when children are added to a parent using a variety of methods:
Last updated
Was this helpful?