Reader Dane gets his hands dirty and sends in a screencast demonstration of how he built his own clipboard cleaner application using the C# ("C sharp") programming language. The result is a runnable Windows .exe file. Hit the play button above to check out how he did it.

Now, most people won't be dashing off their own custom software applications any time soon, but the incredible simplicity of this one is pretty interesting, especially to folks with the programming bug. It almost makes you want to start writing C#. Almost.

Advertisement

Here's where to download the tool Dane uses in the video, Microsoft's Visual C# Express Edition, and the code snipped is as follows:

IDataObject data = Clipboard.GetDataObject();

if (data != null && data.GetDataPresent(DataFormats.Text)) {

String clipboardText = data.GetData(DataFormats.Text).ToString();

Clipboard.SetText(clipboardText);

}

Hit the link to see a larger-resolution version. Thanks Dane! You just scored a signed copy of Lifehacker the book.