unit WinForm1;

interface

uses
  System.Drawing, System.Collections, System.ComponentModel,
  System.Windows.Forms, System.Data;

type
  TWinForm1 = class(System.Windows.Forms.Form)
  {$REGION 'Designer Managed Code'}
  strict private
    /// <summary>
    /// Required designer variable.
    /// </summary>
    components: System.ComponentModel.IContainer;
    Label1: System.Windows.Forms.Label;
    Label2: System.Windows.Forms.Label;
    Timer1: System.Windows.Forms.Timer;
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    procedure InitializeComponent;
    procedure Timer1_Tick(sender: System.Object; e: System.EventArgs);
  {$ENDREGION}
  strict protected
    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    procedure Dispose(Disposing: Boolean); override;
  private
    { Private Declarations }
  public
    constructor Create;
  end;

  [assembly: RuntimeRequiredAttribute(TypeOf(TWinForm1))]

implementation

{$AUTOBOX ON}

{$REGION 'Windows Form Designer generated code'}
/// <summary>
/// Required method for Designer support -- do not modify
/// the contents of this method with the code editor.
/// </summary>
procedure TWinForm1.InitializeComponent;
begin
  Self.components := System.ComponentModel.Container.Create;
  Self.Label1 := System.Windows.Forms.Label.Create;
  Self.Label2 := System.Windows.Forms.Label.Create;
  Self.Timer1 := System.Windows.Forms.Timer.Create(Self.components);
  Self.SuspendLayout;
  // 
  // Label1
  // 
  Self.Label1.Font := System.Drawing.Font.Create('Microsoft Sans Serif', 18, 
      System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (Byte(238)));
  Self.Label1.Location := System.Drawing.Point.Create(64, 72);
  Self.Label1.Name := 'Label1';
  Self.Label1.Size := System.Drawing.Size.Create(184, 32);
  Self.Label1.TabIndex := 0;
  Self.Label1.Text := 'Splash Screen';
  // 
  // Label2
  // 
  Self.Label2.Location := System.Drawing.Point.Create(64, 136);
  Self.Label2.Name := 'Label2';
  Self.Label2.Size := System.Drawing.Size.Create(184, 23);
  Self.Label2.TabIndex := 1;
  Self.Label2.Text := 'Windows Forms - Delphi for .NET';
  // 
  // Timer1
  // 
  Self.Timer1.Enabled := True;
  Self.Timer1.Interval := 2000;
  Include(Self.Timer1.Tick, Self.Timer1_Tick);
  // 
  // TWinForm1
  // 
  Self.AutoScaleBaseSize := System.Drawing.Size.Create(5, 13);
  Self.BackColor := System.Drawing.Color.Red;
  Self.ClientSize := System.Drawing.Size.Create(292, 224);
  Self.Controls.Add(Self.Label2);
  Self.Controls.Add(Self.Label1);
  Self.FormBorderStyle := System.Windows.Forms.FormBorderStyle.None;
  Self.Name := 'TWinForm1';
  Self.StartPosition := System.Windows.Forms.FormStartPosition.CenterScreen;
  Self.Text := 'WinForm1';
  Self.TopMost := True;
  Self.ResumeLayout(False);
end;
{$ENDREGION}

procedure TWinForm1.Dispose(Disposing: Boolean);
begin
  if Disposing then
  begin
    if Components <> nil then
      Components.Dispose();
  end;
  inherited Dispose(Disposing);
end;

constructor TWinForm1.Create;
begin
  inherited Create;
  //
  // Required for Windows Form Designer support
  //
  InitializeComponent;
  //
  // TODO: Add any constructor code after InitializeComponent call
  //
end;

procedure TWinForm1.Timer1_Tick(sender: System.Object; e: System.EventArgs);
begin
Close;
Dispose;
end;

end.
