RectControl.Parent

Used to get and set the control's parent control or window. Returns Nil if the parent is the window.

Syntax
Parent( Control ) as

Parameters
Control |

# Notes

Assign Nil to make the control's parent the window, even if it is enclosed by another control. The child control's behavior in the IDE (see "Control Hierarchy" in Notes, below) will reflect the parent's state. If the parent control is somehow in another window, an InvalidParentException will occur.