Hello there, I have created and application where the items in a ListView will be dragged and dropped over the desktop. So far, I was able to implement the drag but cannot drop the item. The function I used should be detected by windows but it cannot register the drop on the desktop. Here is my code:
private void listview_ItemDrag(object sender, ItemDragEventArgs e){
DataObject object = new DataObject()
string f = listview.SelectedItems[0].Text;
object.SetData(DataFormats.FileDrop, f);
DoDragDrop(object, DragDropEffects.All);
}
I can't find any article that could enlighten me. I've been stuck in this code for days now. What seems to be the problem?