Keeping data in clipboard after app closes
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, I'm trying to get some text that I copy to the clipboard to stay there after my application has closed. At the moment I can paste from clipboard while my application is open, but after it closes the clipboard is empty. Code: **START APPLICATION** Clipboard.SetDataObject("Sample Text"); **CLOSE APPLICATION**
-
Hi, I'm trying to get some text that I copy to the clipboard to stay there after my application has closed. At the moment I can paste from clipboard while my application is open, but after it closes the clipboard is empty. Code: **START APPLICATION** Clipboard.SetDataObject("Sample Text"); **CLOSE APPLICATION**
Clipboard.SetDataObject("Sample Data", true); // True maintains copy after appln exits.