RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.Create Constructor

Creates and initializes a new TForm object.

Pascal
constructor Create(AOwner: TComponent); override;
C++
virtual __fastcall TCustomForm(TComponent * AOwner);

Use Create to instantiate a TForm object or descendant of TForm at runtime. AOwner is the owner of the TCustomForm object. 

For descendants of TCustomForm that are not TForm objects, use CreateNew instead. Calling Create for a TCustomForm descendant that is not a TForm will raise an exception. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!