Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
Show/ Hide a component by name
This article has not been rated yet. After reading, feel free to leave comments and rate it.
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!
Comments:
|