if Components[i] is TControl then
  TControl(Components[i]).Visible := false;