private void bCopyCsv_Click(object sender, EventArgs e) { CSVw w = new CSVw(); foreach (ListViewItem lvi in lvR.Items) { w.Write(lvi.ImageKey); foreach (ListViewItem.ListViewSubItem i in lvi.SubItems) { w.Write(i.Text); } w.EOL(); } Clipboard.SetText(w.ToString()); MessageBox.Show(this, "Done.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information); }