The following example illustrates using the BeginFileDrop event with an Application
object. To use the BeginFileDrop event with a 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_BeginFileDrop(FileName,
' This example receives an Application
' This event occurs when a file
is dropped on an application or workspace window.
' To fire this event:
' 1) Run init() function to initialize
' 2) Drop a file on the application
MsgBox "A file was just dropped
on the application window."