private void listView1_Drop(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
try
{
Array a = (Array)e.Data.GetData(DataFormats.FileDrop);
if (a != null)
{
fileName = a.GetValue(0).ToString();
}
}
catch (Exception ex)
{
MessageBox.Show("Error in Drag Drop: " + ex.Message);
}
}
}