private void listView1_DragDrop(object sender, DragEventArgs e) { // 返回拖拽項 ListViewItem item = (ListViewItem)e.Data.GetData(typeof(ListViewItem)); //在目標索引位置插入一個拖拽項目的副本 listView1.Items.Add((ListViewItem)item.Clone()); // 移除拖拽項目的原文件 listView1.Items.Remove(item); } private void listView1_DragEnter(object sender, DragEventArgs e) { e.Effect = e.AllowedEffect; } private void listView1_ItemDrag(object sender, ItemDragEventArgs e) { listView1.DoDragDrop(e.Item, DragDropEffects.Move); }