unit glowna;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ComCtrls, ExtCtrls, Menus, StdCtrls;

type
  TForm1 = class(TForm)
    MainMenu1: TMainMenu;
    Plik1: TMenuItem;
    N1: TMenuItem;
    Koniec1: TMenuItem;
    Pomoc1: TMenuItem;
    Oprogramie1: TMenuItem;
    N2: TMenuItem;
    Pomoc2: TMenuItem;
    StatusBar1: TStatusBar;
    Panel1: TPanel;
    PageControl1: TPageControl;
    TabSheet1: TTabSheet;
    TabSheet2: TTabSheet;
    Label1: TLabel;
    Edit1: TEdit;
    Button1: TButton;
    Label2: TLabel;
    Edit2: TEdit;
    Label3: TLabel;
    Label4: TLabel;
    Edit4: TEdit;
    Label5: TLabel;
    Label6: TLabel;
    Edit5: TEdit;
    Edit6: TEdit;
    Button2: TButton;
    Label7: TLabel;
    Edit3: TEdit;
    Label8: TLabel;
    procedure Oprogramie1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

Uses about;

{$R *.dfm}

procedure TForm1.Oprogramie1Click(Sender: TObject);
begin
  form2 := Tform2.Create(application); //stowrzy about
  form2.ShowModal; // wyświtli
  form2.Free;
end;

end.
