Mega Code Archive

 
Categories / Delphi / VCL
 

Changing the owner of a component at runtime

Question: Is it possible to change the owner of a component at runtime? Answer: You can change a component's ownership after creation via the InsertComponent() and RemoveComponent() methods available to all components. The Delphi help file contains examples for using these methods.