IntelliCAD 11.1 Object Library | |
BeginQuit Event | |
See Also |
- Cancel
- True terminates the shutdown and False continues the shutdown.
Application Object : BeginQuit Event |
Description
Occurs when the application starts to shut down. Returning True will terminate the shutdown.
Syntax
Visual Basic |
---|
Public Event BeginQuit( _ ByRef Cancel As Boolean _ ) |
Parameters
- Cancel
- True terminates the shutdown and False continues the shutdown.
Example
The following example illustrates using the BeginQuit event with an Application object. To use the BeginQuit event with a Workspace object, you do not need to initialize the App variable.
Public WithEvents App As Application
Sub init()
'To receive and handle events from IntelliCAD, first initialize the App variable.
Set App = ThisWorkspace.Application
End Sub
'Event handler
Private Sub App_BeginQuit(Cancel)
' This example receives an Application BeginQuit event.
' This event occurs when an application or workspace begins to shut down.
' To fire this event:
' 1) Run init() function to initialize App variable.
' 2) Shut down the application.
MsgBox "The application has begun to shut down."
End Sub