Where to place to run on start? lazarus / 61-Beginners ---------------------------------------------------------------------- coradi · 2018-06-28 09:49 Hallo, where I have to put this line   Label1.Caption:='Test'; If I want to run it, at programmstart? Without clicking a Button or other things Code: [Select]unit Unit1; {$mode objfpc}{$H+} interface uses   Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; type   { TForm1 }   TForm1 = class(TForm)     Button1: TButton;     Label1: TLabel;     procedure Button1Click(Sender: TObject);     procedure Label1Click(Sender: TObject);   private   public   end; var   Form1: TForm1; implementation {$R *.lfm} { TForm1 } procedure TForm1.Label1Click(Sender: TObject); begin end; procedure TForm1.Button1Click(Sender: TObject); begin end; end. ---------------------------------------------------------------------- Bart · 2018-06-28 10:07 Set the caption in the ObjectInspetor. Alternatively use OnCreate event of Form1 and set Caption there. Bart