This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > ID > IDockableWindowDef Interface > IDockableWindowDef.OnDestroy Method (ArcObjects .NET 10.4 SDK) |
Occurs when the docking window is about to be destroyed.
[Visual Basic .NET]
Public Sub OnDestroy ( _
)
[C#] public void OnDestroy ( );
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.
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.