Control.Disposing Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET