Mike Hankey on Clipboard Programming

| by Jonathan Allen Follow 576 Followers on Jan 16, 2008. Estimated reading time: less than one minute |

One of the corner-stones of Windows is the universal clipboard. Every well-designed application is expected to have at least minimal clipboard support and many are quite sophisticated. Yet the .NET framework doesn't expose all of its functionality directly, making it a mystery to most developers. Mike Hankey seeks to bring it to light with The Code Project article ClipSpy+.

In his first lesson, Mike talks about adding an application to the Clipboard message chain. This is a place where applications still interact with each other and one misbehaving application can disrupt all the others.

Next Mike goes into inserting and retrieving data in the clipboard. He does this with the aid of two applications, ClipSpy+ and ClipInjector+. ClipSpy+ monitors the clipboard traffic and displays anything that comes across while ClipInjector+ can be used to insert data in a number of known formats.

Rate this Article

Adoption Stage

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

System.Windows.Forms.Clipboard by Bob Yexley

Yet the .NET framework doesn't expose this functionality directly...

I'm not sure I can agree with this information knowing that there's a class in the System.Windows.Forms namespace called "Clipboard" which provides a direct reference to the system clipboard. Its documented pretty clearly and thoroughly in the MSDN documentation for the framework, and is pretty simple to use.

Re: System.Windows.Forms.Clipboard by Jonathan Allen

I misspoke, I meant to refer to just the event listener. I will update the article to make that clearer.

ClipSpy+ article by Mike Hankey


Thanks for the article. The reason I wrote the article was two fold;
One to acquaint users with the power and flexibility of the clipboard and two to make readers aware of the nuances involved with using it.
I noticed your users directed you to an MSDN article containing detailed information on clipboard usage. While this information is useful it doesn't describe some of the peculiarities involved with the clipboard. I want to also point out that I made reference to the MSDN article in the References section at the end of my article.
At any rate I was just surfing around and ran across this article and just wanted to say thanks.

Mike Hankey

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

3 Discuss

Login to InfoQ to interact with what matters most to you.

Recover your password...


Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.


More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.


Stay up-to-date

Set up your notifications and don't miss out on content that matters to you