代碼: 選擇全部
var
f: Tform;
c: TformClass;
begin
try
c := TformClass(FindClass('Tform3'));
if c <> nil then
begin
application.Createform(c, f);
f.Show;
end;
except
end;
end;
也就是在 Tform3 的 Unit 中必須有
initialization
RegisterClass(Tform3);