NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Control.ParentChanged

Called by the framework after a control's parent changes. This allows (for example) child controls to automatically hook events on their parent, giving better encapsulation.

[Visual Basic]
Overridable Protected Sub ParentChanged( _
   ByVal oldParent As Control, _
   ByVal newParent As Control _
)
[C#]
protected virtual void ParentChanged(
   Control oldParent,
   Control newParent
);
[C++]
protected: virtual void ParentChanged(
   Control* oldParent,
   Control* newParent
);
[JScript]
protected function ParentChanged(
   oldParent : Control,
   newParent : Control
);

Parameters

oldParent
the previous parent of the child control (or null if there was none)
newParent
the new parent of the child control (or null if there is none)

See Also

Control Class | Control Members | System.WinForms Namespace