RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.FindChildControl Method

Returns a child control given its name.

Pascal
function FindChildControl(const ControlName: string): TControl;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!