void axMsRdpClient2_DragDrop(object sender, DragEventArgs e) { string[] files = (string[])e.Data.GetData(DataFormats.FileDrop); string desktopShare = ParentForm.GetDesktopShare(); if (String.IsNullOrEmpty(desktopShare)) { MessageBox.Show(this, "A Desktop Share was not defined for this connection.\n" + "Please define a share in the connection properties window (under the Local Resources tab)." , "Terminals", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { SHCopyFiles(files, desktopShare); } }