procedure button1click(sender :tobject)
var
myform:tform;
begin
myform:=tform.create(self);
with myform do
begin
width:=500;
height:=400;
left:=200;
top:=150;
caption:='删除窗';
show;
end;
end;
form.show显示你要显示的窗体 和form.hide 这个是隐藏
Application.CreateForm(TCheckOut,CheckOut);
CheckOut.ShowModal;
CheckOut.Free;
form2.show 或者showmodal;
Form2.show;