In Lazarus: Create New Project -> Application
Now you have the 1-st Form.
Menu: File -> New Form
Now you have the 2-nd Form
Add "Unit2" to "uses" section of Unit1.
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, Unit2;
Add Button on Form1 from components (Standart palette)
In Object Inspector select Button1, tab Events, event OnClick (double click it)
(or double click Button1 on the Form1)
It will add
procedure TForm1.Button1Click(Sender: TObject);
begin
end;
to your Source Editor.
Type there:
procedure TForm1.Button1Click(Sender: TObject);
begin
Form2.Show;
end;
That's all.