Microsoft SDK for Java

Control.getForm

Retrieves the form that this control is on.

Syntax

public Form getForm()

Return Value

Returns a Form object that represents the form that contains this control.

Remarks

The parent for a control is not necessarily the form. For example, the parent for a radio button in a group box is the group box, not the form that contains the radio button.

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