How to Empty Clipboard?

  • Thread starter Thread starter emr
  • Start date Start date
E

emr

Hi, i want to empty clipboard but i don't want to use this one
Clipboard.SetDataObject("",true);
It must be really empty when i do this
if(Clipboard.GetDataObject().GetDataPresent(DataFormats.Text))

{

something();

}

else {

MessageBox.Show("THATS WHAT I WANT!");

}
 
[DllImport("user32")]
public static extern bool EmptyClipboard() ;

seems to be you solution
 
Back
Top