user1910391
user1910391

Reputation: 11

Windows Clipboard not available

Help please. Problem is in Clipboard. When program starts from VS (debug), it works as expected, but if I start program direct from OS – TextDataFormat.Text and TextDataFormat.UnicodeText formats are empty strings. The same behavior occurs under VS 2008 and VS2012. I use Win 7 Home Premium (Swedish), Service Pack 1. /Kriss

Upvotes: 0

Views: 133

Answers (2)

user1910391
user1910391

Reputation: 11

It was my Anti Virus program which protected Clipboard (quietly) for "Untrusted" programs.

Upvotes: 1

Alex Filipovici
Alex Filipovici

Reputation: 32571

If it's System.Windows.Forms, maybe something sets the following based on a preprocessor directive:

textBox1.ShortcutsEnabled = false;

Wild, but it could happen. Check the MSDN link.

Upvotes: 1

Related Questions