Get all the formats copied into Clipboard

Madhu.b.rokkam
Posted by Madhu.b.rokkam under Windows Forms category on | Points: 40 | Views : 3185
private void button7_Click(object sender, EventArgs e)
{
IDataObject dataobj = Clipboard.GetDataObject();
if (dataobj != null)
{
foreach (string fmt in dataobj.GetFormats())
{
listBox1.Items.Add(fmt);
}
}
}

Comments or Responses

Login to post response