I have this code to add an item to my listbox, it works when dragging items from my hard drive but attachments in outlook can't be dragged and dropped.

What is wrong?


vb.net Code:
  1. If e.Data.GetDataPresent(DataFormats.FileDrop) Then
  2.  
  3.             Dim droppedFilePaths As String() = TryCast(e.Data.GetData(DataFormats.FileDrop, True), String())
  4.  
  5.             For Each droppedFilePath As String In droppedFilePaths
  6.                 Dim fileItem As New ListBoxItem()
  7.  
  8.                 fileItem.Content = System.IO.Path.GetFileNameWithoutExtension(droppedFilePath)
  9.                 fileItem.ToolTip = droppedFilePath
  10.                 listbox.Items.Add(fileItem)
  11.             Next
  12.         End If