unit Unit2; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls; type { TForm2 } TForm2 = class(TForm) Image1: TImage; procedure FormActivate(Sender: TObject); private public end; var Form2: TForm2; implementation {$R *.lfm} { TForm2 } procedure TForm2.FormActivate(Sender: TObject); begin // end; end.