unit Unit2;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Borland.Vcl.ExtCtrls, Borland.Vcl.StdCtrls, System.ComponentModel;

type
  TForm2 = class(TForm)
    Shape1: TShape;
    Label1: TLabel;
    Timer1: TTimer;
    procedure Timer1Timer(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form2: TForm2;

implementation

{$R *.nfm}

procedure TForm2.Timer1Timer(Sender: TObject);
begin
Timer1.Enabled:=False;
Close; //Zamkniecie formy
Application.MainForm.Show;
Release; //Usuwanie formy z pamieci
end;

end.
