property ExFolderView.DropFilesCount as Long
Retrieves the count of dropped files.

TypeDescription
Long A long expression that counts the files being droped.

Use the DropFilesCount property to count the files being dropped. Use the DropFilesPathName property to retrieve the path of the dropping folder. The control fires the DropFiles event to notify your application that some files were dropped. The AllowDropFiles property determines whether or not the control will accept files dragged-and-dropped from another application (such as Explorer).

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