Hello
To avoid the more complicated solution where the frame calls some routine in the parent form so that the form can kill the frame... I was wondering if it's OK to simply set the form as the frame's parent, and let Delphi call Frame.Free when the user closes the application?
procedure TForm1.FormShow(Sender: TObject);
var
Frame2 : TFrame2;
begin
//Frame2 := TFrame2.Create(nil);
Frame2 := TFrame2.Create(Self);
Frame2.Align := alClient;
Frame2.Parent := Self;
Frame2.Visible := True;
end;
Thank you.