public static Copy ( |
||
box | The list box to copy from | |
return | void |
public static void Copy(ListBox box)
{
try
{
StringBuilder builder = new StringBuilder();
foreach (object t in box.SelectedItems)
{
builder.AppendLine(t.ToString());
}
Clipboard.SetDataObject(builder.ToString().Trim(), true);
}
catch { }
}
Tools::Copy ( |