Hi,
Try this code:
IDataObject d = Clipboard.GetDataObject();
if(d.GetDataPresent(DataFormats.Bitmap))
{
return "Bitmap data on clipboard!!";
}
else if(d.GetDataPresent(DataFormats.Text))
{
return (String)d.GetData(DataFormats.Text);
}
else
{
return "Unknown format of data is Contained on the clipboard.";
}
--
Hope this answers your question.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.