IntelliCAD 11.1 Object Library
AppActivate Event
See Also 
Workspace Object : AppActivate Event

Description

Occurs when the application window is activated.

Syntax

Visual Basic
Public Event AppActivate()

Example

The following example illustrates using the AppActivate event with an Application object. To use the AppActivate 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_AppActivate()

     ' This example receives an Application AppActivate event.

     ' This event occurs immediately before an application window or workspace is activated.

     ' To fire this event:

     ' 1) Run init() function to initialize App variable.

     ' 2) Activate an application window.

     MsgBox "Application window is about to be activated."

End Sub

See Also

© 2022 IntelliCAD Technology Consortium. All Rights Reserved.