How can I get my aplication to detect a change in the contents of the clipboard?
Loading
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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
BradPosted Feb 14, 2007, 7:51 PM
Do you know of a way to do it using .NET?
RekoPosted Feb 14, 2007, 3:39 AM
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
BradPosted Feb 12, 2007, 11:56 AM