Forms > Forms Assembly Interfaces > IOleDocumentBox > IOleDocumentBox.DestroyObject
DestroyObject;
The DestroyObject method removes the created COM object from the component.
See also:
IOleDocumentBox