IntelliCAD 11.1 Object Library | |
BeginFileDrop Event | |
See Also |
- FileName
- Cancel
Workspace Object : BeginFileDrop Event |
Description
Syntax
Parameters
- FileName
- Cancel
Example
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
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_BeginFileDrop(FileName, Cancel)
' This example receives an Application BeginFileDrop event.
' This event occurs when a file is dropped on an application or workspace window.
' To fire this event:
' 1) Run init() function to initialize App variable.
' 2) Drop a file on the application window.
MsgBox "A file was just dropped on the application window."
End Sub