1

I'm trying to save images from clipboard. This works well, if I copy something from Paint for example. If I take a screenshot, the Clipboard.GetContent().AvailableFormats shows me 0 items - so no Bitmap Image.

But when I put a timer for 1ms which gets the clipboard data, everything works fine. Since I think depending on random time is dirty, I would like to call something like WaitForClipboard.

Any ideas?

Matt
  • 4,612
  • 1
  • 24
  • 44

1 Answers1

0

I think you could achieve it by handle clipboard update event. You could reference the below link for how to handle clipboard event.

Clipboard event C#

In the handler of clipboard update event, you could use the Clipboard.GetContent().AvailableFormats to check for available content.

Community
  • 1
  • 1
Trung Duong
  • 3,475
  • 2
  • 8
  • 9