private void copySelectedToolStripMenuItem_Click(object sender, EventArgs e) { if (!enabledToolStripMenuItem.Checked) { return; } System.Collections.Specialized.StringCollection sc = new System.Collections.Specialized.StringCollection(); foreach (string item in shellControlConnector1.SelectionList) { sc.Add(PathCollection.ExcludeTrailingPathDelimiter(item.TrimEnd('*'))); } if (sc.Count > 0) { Clipboard.SetFileDropList(sc); } }