Monday, February 20, 2012 9:13 PM
I'm trying to use the Clipboard interface from a metro app in C#. However, any method that I call from Clipboard (e.g. SetContent, GetContent) gives me the following error:
OpenClipboard failed (CLIPBRD_E_CANT_OPEN).
Monday, February 20, 2012 9:27 PMModerator
Are you trying to use the Clipboard in response to user input or is this being done in the background? The former should work (and does in my tests), but the latter shouldn't.
- Marked As Answer by vsetlur Monday, February 20, 2012 9:34 PM
Monday, February 20, 2012 9:34 PMThanks. I was trying to do it in the background. Doing it in response to a user input works.