InitializeComponent Error

PascalABCCompiler.Core v3.2.0.1387 (20.02.2017), debug version Runtime version: 4.0.30319.42000 OS version: Microsoft Windows NT 6.2.9200.0 Processor count: 4 WorkingSet: 99776 kb

Hi to All ,

I creat a new Project with ;

  • File->New Project->Windows Forms Application

Hit F9 or click Program Menu->Run

Then ı got 'Undefiened Name Reference ‘InitializeComponent’ Error.

Unit Code :

Unit Unit1;


uses System, System.Drawing, System.Windows.Forms;

type Form1 = class(Form) {$region FormDesigner} private {$resource Unit1.Form1.resources} {$include} {$endregion FormDesigner} public constructor; begin InitializeComponent; end; end;



Installed netframework versions are :

4.5.1 4.5.2 4.6 4.6.1

Does this file exist in the project directory?

Yes this file exists in the project directory with the code inside :

procedure InitializeComponent; begin self.SuspendLayout(); // // Form1 // self.ClientSize := new System.Drawing.Size(637, 345); self.Name := ‘Form1’; self.Text := ‘Form1’; self.ResumeLayout(false); end;