This document is archived and information here might be outdated.  Recommended version.


IDockableWindowDef.OnDestroy Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > ID > IDockableWindowDef Interface > IDockableWindowDef.OnDestroy Method
ArcGIS Developer Help

IDockableWindowDef.OnDestroy Method

Occurs when the docking window is about to be destroyed.

[Visual Basic .NET]
Public Sub OnDestroy ( _
)
[C#]
public void OnDestroy (
);

Product Availability

Available with ArcGIS Desktop.
[C#]

If you embed or reference any ActiveX control in the child form of your dockable window, you must call Form::Dispose() at OnDestroy to release the ActiveX control before application shutdown.

[Visual Basic .NET]

If you embed or reference any ActiveX control in the child form of your dockable window, you must call Form::Dispose() at OnDestroy to release the ActiveX control before application shutdown.

See Also

IDockableWindowDef Interface