delphi动态创建窗体的问题

2025-05-13 01:27:50
推荐回答(1个)
回答1:

var
NewForm:TForm2;
begin
NewForm:=TForm2.Create(nil);
NewForm.ShowModal;
NewForm.free;
end;