Type | Description | |||
Folder as ExShellFolder | An object reference to a Folder object. | |||
Effect as Long | A long integer that represents the desired drag-and-drop effect. |
This event occurs after the user drags and drops files into the control. Folder is the target of the drag and drop operation. Effect holds the desired effect of the drag and drop. Use the DropFilesCount property to count the files being dropped. Use the DropFilesPathName property to retrieve the path of the dropping folder. The DropFiles event is fired only if the AllowDropFiles property is True.
Syntax for DropFiles event, /NET version, on:
private void DropFiles(object sender,exontrol.EXFOLDERVIEWLib.ExShellFolder Folder,int Effect) { } Private Sub DropFiles(ByVal sender As System.Object,ByVal Folder As exontrol.EXFOLDERVIEWLib.ExShellFolder,ByVal Effect As Integer) Handles DropFiles End Sub |
private void DropFiles(object sender, AxEXFOLDERVIEWLib._IExFolderViewEvents_DropFilesEvent e) { } void OnDropFiles(LPDISPATCH Folder,long Effect) { } void __fastcall DropFiles(TObject *Sender,Exfolderviewlib_tlb::IExShellFolder *Folder,long Effect) { } procedure DropFiles(ASender: TObject; Folder : IExShellFolder;Effect : Integer); begin end; procedure DropFiles(sender: System.Object; e: AxEXFOLDERVIEWLib._IExFolderViewEvents_DropFilesEvent); begin end; begin event DropFiles(oleobject Folder,long Effect) end event DropFiles Private Sub DropFiles(ByVal sender As System.Object, ByVal e As AxEXFOLDERVIEWLib._IExFolderViewEvents_DropFilesEvent) Handles DropFiles End Sub Private Sub DropFiles(ByVal Folder As EXFOLDERVIEWLibCtl.IExShellFolder,ByVal Effect As Long) End Sub Private Sub DropFiles(ByVal Folder As Object,ByVal Effect As Long) End Sub LPARAMETERS Folder,Effect PROCEDURE OnDropFiles(oExFolderView,Folder,Effect) RETURN |
<SCRIPT EVENT="DropFiles(Folder,Effect)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function DropFiles(Folder,Effect) End Function </SCRIPT> Procedure OnComDropFiles Variant llFolder Integer llEffect Forward Send OnComDropFiles llFolder llEffect End_Procedure METHOD OCX_DropFiles(Folder,Effect) CLASS MainDialog RETURN NIL void onEvent_DropFiles(COM _Folder,int _Effect) { } function DropFiles as v (Folder as OLE::Exontrol.FolderView.1::IExShellFolder,Effect as N) end function function nativeObject_DropFiles(Folder,Effect) return |
Here is a VB sample that lists the files dragged in the Immediate debugger window.
Private Sub ExFolderView1_DropFiles(ByVal ExShellFolder As EXFOLDERVIEWLibCtl.IExShellFolder, ByVal Effect As Long) Dim I As Long For I = 0 To FolderView1.DropFilesCount - 1 Debug.Print FolderView1.DropFilesPathName(I) Next I If (Effect & 1) = 1 Then Debug.Print "Copied to " & Folder.PathName Else Debug.Print "Moved to " & Folder.PathName End If End Sub