I use a timer as
System.Threading.Timer clipboardTimer = new Timer(ClearClipboard);
Then I change my interval to
clipboardTimer.Change(1000, 30000);
In the processing timeout function, i.e. ClearClipboard , I want to clear the clipboard as
void ClearClipboard(object o) { Clipboard.SetText(""); }
but there is a System.Unauthorised exception. Perhaps this is because there are two different streams. So how can I use transparent clipboard effectively?
source share