RAD Studio VCL Reference
TWinControl.FindChildControl Method

Returns a child control given its name.

function FindChildControl(const ControlName: string): TControl;
__fastcall TControl * FindChildControl(const AnsiString ControlName);

Call FindChildControl to locate a specified child control. FindChildControl searches the control's children and returns the control with the specified name. If no child controls match the specified name, FindChildControl returns nil (Delphi) or NULL (C++).

Note: FindChildControl only locates immediate children of the control. It can't find a control that is a child of one of the control's children.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!