I want to add published properties to a TForm descendent and register as 
CustomModule in VCL.NET, so that I can use it as a base form in all my 
projects. 

When I register the below code, it doesn't throws any error but when I try to 
create dynamically (Obj := TMyForm .Create(Self);  Obj.ShowModal;) an error 
displayed as "Resource TMyForm not found".

unit MyFrom

interface

uses
  Classes, Windows, Borland.Vcl.Design.DesignIntf, Forms,
  Borland.Vcl.Design.DesignEditors;

type
  TMyForm = class( TForm );

procedure Register;

implementation

procedure Register;
begin
  RegisterCustomModule( TMyForm, TCustomModule );
end;

end.


Has anyone encountered something like this before?

Regards,
Saravanan
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to