From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
You tried to get the parent of a control using the Parent property of the Control class, but its parent is in a different window. The parent control must be in the same window as the control or the parent is the containing window, not another control.
This example tries to capture an invalid parent control.
Exception err As InvalidParentException
MessageBox("An InvalidParentException occurred!")