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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top