DestroyWindow Event

Applies to:  CbtEvents object
See also:  Window object

Occurs when a window is about to be destroyed.

Syntax:

Public Event DestroyWindow(ByRef Window As Window, ByRef Cancel As Boolean)

The DestroyWindow event syntax has these parts:

Part Description
object The name of a CbtEvents object.  NB:  object must be declared using WithEvents.
Window The window about to be created.
Cancel A boolean value that determines whether Window will be destroyed.  Setting Cancel to True prevents the window from being destroyed.  This may produce unpredictable behaviour.

 

Home Copyright and Disclaimer