[This is preliminary documentation and is subject to change.]

Recursivelly searches for innermost focused control placed on given control

Namespace: Tools.WindowsT.FormsT.UtilitiesT
Assembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public static Control FindActiveControl(
	this Control Control,
	Func<Control, bool> DoNotExpand
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function FindActiveControl ( _
	Control As Control, _
	DoNotExpand As Func(Of Control, Boolean) _
) As Control
Visual C++
[ExtensionAttribute]
public:
static Control^ FindActiveControl(
	Control^ Control, 
	Func<Control^, bool>^ DoNotExpand
)
F#
static member FindActiveControl : 
        Control:Control * 
        DoNotExpand:Func<Control, bool> -> Control 
JScript
public static function FindActiveControl(
	Control : Control, 
	DoNotExpand : Func<Control, boolean>
) : Control

Parameters

Control
Type: System.Windows.Forms..::..Control
Control to serach for child of
DoNotExpand
Type: System..::..Func<(Of <(<'Control, Boolean>)>)>
Optional. Call back function delegate. The function returns true for controls that should be treated as controls withoud child controls. If such control contains has or focus it is returned. This ¨function is called for Control (passed in paramater) as well.

Return Value

The inner most control that contain focus. Null when there is no such control and Control also has not focus.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Control. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also