Bewerken

Delen via


Control.Disposing Property

Definition

Gets a value indicating whether the base Control class is in the process of disposing.

public:
 property bool Disposing { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool Disposing { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Disposing : bool
Public ReadOnly Property Disposing As Boolean

Property Value

true if the base Control class is in the process of disposing; otherwise, false.

Attributes

Remarks

When this property returns true, the base Control class is in the process of disposing. After the control is disposed of, it can no longer be referenced as a valid Windows control. Even though the instance of a control is disposed of, it is still maintained in memory until it is removed from memory through garbage collection. When a control is disposed of, you cannot call its RecreateHandle method.

Applies to

See also