0

Clipboard.GetText() always empty, I want to copy the text in my clipboard inside my app

var str = Clipboard.GetText();

but it's always empty! why is that? where it has data.

Abanoub
  • 3,623
  • 16
  • 66
  • 104
  • On which operating system do you test? As per MSDN documentation, getting an empty string might be an expected behaviour: http://msdn.microsoft.com/en-us/library/kz40084e(v=vs.110).aspx – Quality Catalyst Jan 06 '15 at 02:14
  • 1
    Add this code statement before: `Clipboard.SetText("Bugs Bunny");` Is `str` still empty? – Quality Catalyst Jan 06 '15 at 02:15

0 Answers0