RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesignerHook.Form Property

Provides a reference to the form currently being designed.

Pascal
property Form: TCustomForm;
C++
__property TCustomForm Form;

Use Form to access the form, if any, that is being designed. When the user specifies changes in the form designer, the changes can be made to the form specified by the Form property.

Note: Not every designer has a form. For example, when the designer is used for a data module, remote data module, or active form, the Form property should not be used. Instead, use the object that the GetRoot method returns.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!