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


IDockableWindowDef.OnDestroy Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Framework)  

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