Vcl.SvcMgr.TServiceApplication.CreateForm

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CreateForm(InstanceClass: TComponentClass; var Reference); virtual;

C++

virtual void __fastcall CreateForm(System::Classes::TComponentClass InstanceClass, void *Reference);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.SvcMgr.pas
Vcl.SvcMgr.hpp
Vcl.SvcMgr TServiceApplication

Description

Creates the service object or objects for the service application.

Do not call CreateForm in an application. The module manager calls CreateForm internally to register the service objects of the service application.

CreateForm instantiates a TService object for each service contained in the service application. CreateForm is called automatically, for the first service, when the service application is first created. Subsequently, CreateForm is called for each new service added to the application. To add a new service, select File | New from the menu of the IDE main window and choose Service in the New Items dialog.