//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);
}
}
}