IntelliCAD 11.1 Object Library | |
BeginFileDrop Event | |
See Also |
- FileName
- The name of the file.
- Cancel
- True terminates the file open operation and False continues opening the file.
Application Object : BeginFileDrop Event |
Description
Syntax
Parameters
- FileName
- The name of the file.
- Cancel
- True terminates the file open operation and False continues opening the file.
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