I write the module:
unit Unit2;
interface
uses Forms;
type
TForm2 = class(TForm)
end;
implementation
end.
In the button OnClick handler I write:
with TForm2.Create(Self) do
try
ShowModal;
finally
Free;
end;
Pressing the button throws exception:
Resource TForm2 not found
Is it possible to somehow (maybe a hack) to create forms entirely «by hand», without involvement of the mechanism of saving of forms properties in resources???