65.9K
CodeProject is changing. Read more.
Home

Tool for Viewing Drag and Drop and Clipboard Formats

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.29/5 (6 votes)

Feb 13, 2002

viewsIcon

107270

downloadIcon

2768

A tool for viewing clipboard and drag and drop formats

Introduction

With this tool, you can see what exchange formats that a given clipboard or drag&drop object suports just by dragging it from other application or copying it to the clipboard.

Under the Hood

For getting the Clipboard IDataObject interface, I used the Clipboard class from the System.Windows.Forms namespace. The formats are retreived using the method GetFormats from the IDataObject interface.

The monitorization of Clipboard is handled with my component, ClipboardViewer. This component is using the SetClipboardViewer and ChangeClipboardChain Win32 Clipboard functions.

Installing & Building

  1. Download and extract the source code of this article
  2. Run the build.bat file from command prompt
  3. Now run the bin\main.exe and enjoy!

Do you have any questions or comments? Contact me!

History

  • 6 Mar 2002
    • The class ClipboardViewer is now in a separate file, Rgl.Components.CliboardViewer.cs, and in a different namespace, Rgl.Components
    • The ClipboardViewer class now correctly creates itself on Win9X/ME
  • 14 Feb 2002
    • First version