Event BeforeHandleDestroyed
Occurs before the handle of the associated native control is destroyed.
[Browsable(false)]
public event EventHandler? BeforeHandleDestroyed
Returns
- EventHandler
- Occurs before the handle of the associated native control is destroyed.
Remarks
This event allows subscribers to perform any necessary cleanup or actions before the handle of the native control is destroyed. Ensure that any resources tied to the handle are released or finalized in the event handler.