Version

FindContainedControlByName Method

Does a recursive search through the container's descendant controls and returns the control with the specified name.
Syntax
'Declaration
 
Public Shared Function FindContainedControlByName( _
   ByVal container As Control, _
   ByVal controlName As String _
) As Control
public static Control FindContainedControlByName( 
   Control container,
   string controlName
)

Parameters

container
The container control.
controlName
The name of the control.

Return Value

The first control whose Name property matches or null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also