Retrieves the parent of this control.
public final Control getParent()
Returns a Control object that represents the parent control that contains this control. The parent for a control is not necessarily the form that contains it. To retrieve the form that contains a control, use the getForm method.
See Also setParent