The following example illustrates using the WindowMovedOrResized event with
an Application object. To use the WindowMovedOrResized event with a Document
or Workspace object, you do not need to initialize the App variable.
Public WithEvents App As Application
'To receive and handle events from
progeCAD, first initialize the App variable.
Set App = ThisWorkspace.Application
Private Sub App_WindowMovedOrResized(HWNDFrame,
' This example receives an Application
' This event occurs when an application,
document, or workspace window is moved or resized.
' To fire this event:
' 1) Run init() function to initialize
' 2) Move or resize the application
MsgBox "A window was moved