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

Removes control from parent its 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 void Remove(
	this Control Control
)
Visual Basic
<ExtensionAttribute> _
Public Shared Sub Remove ( _
	Control As Control _
)
Visual C++
[ExtensionAttribute]
public:
static void Remove(
	Control^ Control
)
F#
static member Remove : 
        Control:Control -> unit 
JScript
public static function Remove(
	Control : Control
)

Parameters

Control
Type: System.Windows.Forms..::..Control
Control to be removed

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 .

Remarks

If Control.Parent is null, nozhing happens

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionControl is null

See Also