-1

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???

Mike
  • 39
  • 2

1 Answers1

0

I've not tried this myself, but from what I've read, there are a couple of approaches:

Community
  • 1
  • 1
Josh Kelley
  • 56,064
  • 19
  • 146
  • 246