Geeks With Blogs
Chris Breisch   .NET Data Practices
Search this Blog!

Here's a library for manipulating the clipboard using C#.  Why do we need such a library?  Because the Windows.Forms.Clipboard class only allows you to manipulate serializable data.  You need to escape out to the Windows API if your data doesn't conform.  This class does all that magic for you.

From the introduction:

The code uses Windows API calls to read and write into the clipboard.

It provides a ClipboardHelper, an easy to use API bridge, which offers, in addition, functions to serialize complex clipboard data to hard disk and restore them when you want, using the XmlSerializer, instead of the .NET Framework which can manage only CLR compliant data.

I tested it with Internet Explorer, Word, OpenOffice, including with image files.

Posted on Tuesday, September 26, 2006 9:09 AM .NET Development | Back to top


Comments on this post: Clipboard Backup in C#

# re: Clipboard Backup in C#
Requesting Gravatar...
project manager at email-soft
Left by saleh al saleh on May 30, 2007 6:27 AM

Your comment:
 (will show your gravatar)


Copyright © Chris J. Breisch | Powered by: GeeksWithBlogs.net