DelphiFAQ Home Search:
General :: Programming :: Delphi :: VCL
About the Delphi VCL (Visual Component Library)

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Only the 40 most recently viewed articles are shown.
You can see the full list here.

Featured Article

Show/ Hide a component by name

The following function hides a given control specified by its componentname:

procedure TForm1.ShowHideComponent(ComponentName: String);
 var
   TmpComp: TComponent;
 begin
   TmpComp := FindComponent(ComponentName)
   if TmpComp <> Nil then 
     if TmpComp is TControl then
       TControl(TmpComp).Hide;
 end;
You don't like the formatting? Check out SourceCoder then!
Generated 20:01:24 on Feb 17, 2018