标签:
//view.AllowDrop = true; ---------------------------------------- private void view_DragEnter(DragEventArgs drgevent) { if (m_allowdrop) { if (drgevent.Data.GetDataPresent(DataFormats.FileDrop)) { drgevent.Effect = DragDropEffects.Link; } else { drgevent.Effect = DragDropEffects.None; } } } private void view_DragDrop(DragEventArgs drgevent) { Array arrayFileName = drgevent.Data.GetData(DataFormats.FileDrop) as Array; if (arrayFileName != null) { foreach (string name in arrayFileName) { //AddFileNameCtl(name); } } }
标签:
原文地址:http://www.cnblogs.com/diulela/p/4354658.html