with Tform2.create(panel1) do begin parent:=panel1; Align:=alClient; show;
end;
Form2 := TForm2.Create(self); with Form2 do begin Parent := Panel1; Visible := True; Top := Panel1.Top; Left := Panel1.Left; Width := Panel1.Width; end;
procedure TForm1.Button1Click(Sender: TObject); var temp:TForm1; begin temp:=TForm1.Create(self); temp.Parent:=form1.Panel1; temp.Show; temp.Color:=clred; end;
Form2 := TForm2.Create(self); with Form2 do begin Parent := Panel1; Visible := True; Top := Panel1.Top; Left := Panel1.Left; Width := Panel1.Width; end;
begin
parent:=panel1;
Align:=alClient;
show;
end;
with Form2 do
begin
Parent := Panel1;
Visible := True;
Top := Panel1.Top;
Left := Panel1.Left;
Width := Panel1.Width;
end;
var
temp:TForm1;
begin
temp:=TForm1.Create(self);
temp.Parent:=form1.Panel1;
temp.Show;
temp.Color:=clred;
end;
Align:=alClient;
form2.show;
不知道可以不可以。
with Form2 do
begin
Parent := Panel1;
Visible := True;
Top := Panel1.Top;
Left := Panel1.Left;
Width := Panel1.Width;
end;
我是的:
form2:=Tform2.create(self);
form2.show;
要怎么来写
谢谢
AHandle:THandle;
begin
AHandle:=FindWindow(form2,nil);
if AHandle=0 then
begin
...
end;
end;
form2.show;
begin
form2:=tfrom2.create(self);
form2.show;
end;
begin
form2:=tfrom2.create(self);
form2.show;
end;
seawavefj(@_@) 完全是抄我的,还给他16分!!!!