pdejan

pdejan

  • NA
  • 1
  • 0

ListView drag and drop to Windows Explorer

Jun 14 2004 10:25 AM
I want to drag files from myAPP and drop to Windows Explorer... OK nice here is code "file copy" is done but anyone have idea why Windows Explorer don't refresh after drop? private void lvw_ItemDrag(object sender,ItemDragEventArgs e) { int SelectedCount=0; string[] files = new String[lvw.SelectedItems.Count]; foreach(ListViewItem lvi in lvw.SelectedItems) { files[SelectedCount] = Address.Text + "\\" + lvi.Text; SelectedCount++; } DataObject data = new DataObject(DataFormats.FileDrop, files); data.SetData(DataFormats.StringFormat, files); DoDragDrop(data, DragDropEffects.Copy); } Many thanks M8s