Microsoft SDK for Java

Control.getTopLevelControl

Retrieves the top-level control that contains this control.

Syntax

public final Control getTopLevelControl()

Return Value

Returns the top-level control that contains this control.

Remarks

This method does not necessarily return the same value as the getForm method because forms can have other controls as parents.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.