L
lijun175165721
Unregistered / Unconfirmed
GUEST, unregistred user!
function TForm3.CreateForm(AOwner:TComponent;Aclass:TComponentClass):TComponent;
var
Instance:TComponent;
begin
Instance:=TComponent(AClass.NewInstance);
Instance.Create(AOwner);
CreateForm1:=Instance;
end;
我是按上面的方面来动态创建窗体的,不过在后面调用此函数时没有创建成功!
请大家指点!
var
Instance:TComponent;
begin
Instance:=TComponent(AClass.NewInstance);
Instance.Create(AOwner);
CreateForm1:=Instance;
end;
我是按上面的方面来动态创建窗体的,不过在后面调用此函数时没有创建成功!
请大家指点!