(Solved)Components/Graphics Problem lazarus / 61-Beginners ---------------------------------------------------------------------- JLWest · 2020-10-09 20:08 The following code hides all the tlabels on a form and works fine. If I have a form with 35 tlabels is there a way to hide just very specific tlabels say 11 of the 35? 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 procedure TForm1.btnHideClick(Sender: TObject); var i : Integer;  begin       for i:= 0 to ComponentCount-1 do         if Components[i] is TLabel then begin          TLabel(Components[i]).Visible := False;        end;end; Thanks ---------------------------------------------------------------------- howardpc · 2020-10-09 20:20 One way would be to set the Tag property of all labels-to-be-hidden to some marker value. Then  in your loop test the Tag value of each TLabel for the marker value and act accordingly. ---------------------------------------------------------------------- JLWest · 2020-10-09 20:51 hi howardpc Yes, Coded and tested. It works. Thank You 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       for i:= 0 to ComponentCount-1 do         if Components[i] is TLabel then begin          if TLabel(Components[i]).Tag =1 then begin             TLabel(Components[i]).Visible := False;          end;        end;