[Solved]Phantom component: can't compile or find it till put new one and delete. lazarus / 31-LCL ---------------------------------------------------------------------- Gald · 2020-12-05 23:26 Hello! Sometimes things like these happen (first time with a TFrame) to me, but i can't reproduce them every time. I just add a new Frame, with a ToggleBox and them remove it and his empty OnChange event. The following project shows a warning when it is opened and there is only one way to solve it: Place a new ToggleBox on the Form and delete it. Is this a Known Issue? Solved Edit: Thanks for your replies! ---------------------------------------------------------------------- Gald · 2020-12-05 23:39 It's here: unit1.lfm Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i object Form1: TForm1  Left = 421  Height = 358  Top = 72  Width = 460  Caption = 'Form1'  ClientHeight = 358  ClientWidth = 460  LCLVersion = '2.0.10.0'  inline Frame1_1: TFrame1    Left = 32    Top = 40    DesignLeft = 986    DesignTop = 180    inherited ToggleBox1: TToggleBox      OnChange = ToggleBox1Change    end  end  object Button1: TButton    Left = 262    Height = 25    Top = 17    Width = 75    Caption = 'Button1'    TabOrder = 1  endend inherited ToggleBox1: TToggleBox OnChange = ToggleBox1Change ---------------------------------------------------------------------- jamie · 2020-12-05 23:52 that could happen when renaming of items manually, the lfm still has the other name but your class has your new name.. your new stuff no longer gets the events properly assigned because there is like you say, one that has been created in the background of a different name. ---------------------------------------------------------------------- wp · 2020-12-06 00:00 You are only allowed to modify property of the frame components, but you cannot delete them - that's probably your problem. Since you cannot distinguish components on the frame from components added separately the work with frames can very easily become very frustrating. Whenever I use frames I only insert them at runtime so that these issues cannot occur. The must prominent application using Frames, the Lazarus IDE, does the same, and it is very successful this way.