private void Form1_DragEnter(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop)) { e.Effect = DragDropEffects.Copy; } else { e.Effect = DragDropEffects.None; } } private void Form1_DragDrop(object sender, DragEventArgs e) { Array a = (Array)e.Data.GetData(DataFormats.FileDrop); if (a != null) { string s = a.GetValue(0).ToString(); MessageBox.Show(s); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)