I have tried many things to do a simple check to return either true or false, for object in clipboard. Nothing has worked so far. Here is my last resort and the code that I think is close but does not work right:
It seems to me that the clipboard always has something in it, because when I copy bland rtb text it returns false. It always returns false. Please help.
Code:
public static bool ClipBOccupied()
{
if(Clipboard.GetDataObject().Equals(null))
return true;
return false;
}
Last edited: