DestroyWindow Event

Applies to:  Subclasser object, PowerForm control
See also:  Event Index

Occurs when a window is about to be destroyed, but before the window is unsubclassed.

Syntax:

Private Sub object_DestroyWindow()

The DestroyWindow event syntax has these parts:

Part Description
object The name of an object in the Applies to list.  If object is a SubClasser object, then the object must be declared using WithEvents.

Remarks:

If the subclassed window is a Visual Basic form, the DestroyWindow event occurs after the form has been unloaded.

 

Home

Copyright and Disclaimer