type
TForm2 = class(TForm)
protected
procedure CreateParams( var Params: TCreateParams );override;
//...
end;
implementation
uses Unit1;
procedure TForm2.CreateParams( var Params: TCreateParams );
begin
inherited CreateParams( Params );
with Paramsdo
begin
Style := Style or ws_Overlapped;
WndParent := Form1.Handle;
end;
end;