private void Form1_Load(object sender, EventArgs e) { listBox1.DragDrop += new DragEventHandler(listBox1_DragDrop); }
private void listBox1_DragDrop(object sender, DragEventArgs e) { string[] FileList = (string[])e.Data.GetData(DataFormats.FileDrop, false); MessageBox.Show(FileList[0]); }