先建立好ListView,ImageList,然后编写一个比较类在就是添加DragDrop事件了具体实现看代码吧 public partial class Form1 : Form { public Form1() { InitializeComponent(); InitializeListView(); } // 初始化listView1. private void InitializeListView() { listView1.ListViewItemSorter = new ListV…
ListView添加项目带序列 function AddSelItems(listview1:TListView;ListView2:TListView):Boolean;var s: string; I,j: Integer;begin Result:=False; if listview1.Selected =nil then exit; for i := 0 to listview1.items.count - 1 do begin j:=ListView2…