Control Visibilty lazarus / 31-LCL ---------------------------------------------------------------------- rrivett · 2011-08-27 17:45 I must be missing something. If I set ListView1.Visible to True directly on the form then launch the program, the following procedure hides the control. Code: [Select]procedure HideObjectList(); begin    fmMain.ListView1.Visible := False     end;              But if I set ListView1.Visible to False directly on the form then launch the program, the following procedure does nothing. ListView1 remains hidden. I am calling HideObject List from a menu action. Code: [Select]Procedure HideObjectList(); begin    fmMain.ListView1.Visible := False     end;              Code: [Select] Why doesn't setting the control's visible property to true actually make it visible? Thanks. ---------------------------------------------------------------------- howardpc · 2011-08-27 18:00 If you want to toggle visibility on and off you should use code something like this: Code: [Select]Procedure TForm1.Button1Click(Sender: TObject); Begin   ListView1.Visible := not ListView1.Visible; end;    Howard ---------------------------------------------------------------------- joseme · 2011-08-27 18:15 If you want to show the component, you should put its .Visible property to True. Sometimes this is not enough because the control falls behind another controls in the form, so it is necessary to call the .BringtoFront function.