Version

IsControlOnActiveForm Method

Determines if the specified control is on the active form. This does not consider forms owned by the control's form. If this is overridden in derived classes, it should call the base implementation first. If the base returns false, additional processing should be used to determine if the control is on the active form.
Syntax
'Declaration
 
Protected Overridable Function IsControlOnActiveForm( _
   ByVal control As Control _
) As Boolean
protected virtual bool IsControlOnActiveForm( 
   Control control
)

Parameters

control
The control to test.

Return Value

True if the specified control is on the active form; False otherwise or if the control is 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