How can I get my aplication to detect a change in the contents of the clipboard?
Clipboard events
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
How can I get my aplication to detect a change in the contents of the clipboard?
Know the answer? Post it. Somebody with the same question will find it here.
Brad6 pointsPosted Feb 12, 2007, 6:56 AM EST
Reko10 pointsPosted Feb 13, 2007, 10:39 PM EST
One way would be to use the Win32 API function SetClipboardViewer(). You can use this function through P/Invoke, but you'd also need to define your own WndProc so you can handle the events that are sent to your application. See this page for an example: http://www.radsoftware.com.au/articles/clipboardmonitor.aspx
Brad6 pointsPosted Feb 14, 2007, 2:51 PM EST
Do you know of a way to do it using .NET?